zls/tests/utility
Joseph Stahl 887539ed1a
Allocator.resize() does not adjust size of string allocated for URI to file path conversion (#806)
* fix missing backslash

* fix: zls escaping colon to %3A on URIs

ZLS escapes a colon char ":" as "%3A" when encoding file paths to URIs
When decoding, need to make the target string 2 character shorter
to compensate for length decrease when replacing %3A with :

* add new failing test because of resize()

* revert changes to %3A handling - problem seems to be with allocator.resize

* switch to realloc

* Fix test failures, revert errdefer->defer

* platform-specific URI tests

URI parsing is highly platform-specific
run Unix-style (file:///home/main.zig) on non-Windows test runners,
run Windows-style (file://c%3A/main.zig) on Windows test runners
2022-12-04 16:44:22 -05:00
..
offsets.zig Completely overhaul offsets.zig (#643) 2022-09-16 00:33:49 +00:00
position_context.zig detect comment position context (#756) 2022-11-16 17:34:36 -05:00
uri.zig Allocator.resize() does not adjust size of string allocated for URI to file path conversion (#806) 2022-12-04 16:44:22 -05:00