diff --git a/src/unit_tests.zig b/src/unit_tests.zig index 8bc4814..a351730 100644 --- a/src/unit_tests.zig +++ b/src/unit_tests.zig @@ -103,14 +103,12 @@ test "documentPositionContext" { ); } - test "pathRelative and escapes" { const join1 = try URI.pathRelative(allocator, "file://project/zig", "/src/main+.zig"); defer allocator.free(join1); - std.testing.expectEqualStrings("file://project/zig/src/main%2B.zig", join1); + try std.testing.expectEqualStrings("file://project/zig/src/main%2B.zig", join1); const join2 = try URI.pathRelative(allocator, "file://project/zig/wow", "../]src]/]main.zig"); defer allocator.free(join2); - std.testing.expectEqualStrings("file://project/zig/%5Dsrc%5D/%5Dmain.zig", join2); + try std.testing.expectEqualStrings("file://project/zig/%5Dsrc%5D/%5Dmain.zig", join2); } -