authorgravatar for oa223@cam.ac.ukandersen <oa223@cam.ac.uk> 2025-03-11 12:13:35+00:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-09-26 17:29:55-07:00
logb77411310c94db7f6f1678e189f9d8954828b78c
tree3001ee8244b399cf76051575c77a30d49bdbfdbe
parente1f7e3563fa84b08e707a3dcea610560d179c63d

Fix missing backslash escaping (doubling) in existing tests


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/zig/string_literal.zig+2-2
...@@ -382,7 +382,7 @@ test parseAlloc {...@@ -382,7 +382,7 @@ test parseAlloc {
382 try expect(eql(u8, "\x12foo", try parseAlloc(alloc, "\"\\x12foo\"")));382 try expect(eql(u8, "\x12foo", try parseAlloc(alloc, "\"\\x12foo\"")));
383 try expect(eql(u8, "bytes\u{1234}foo", try parseAlloc(alloc, "\"bytes\\u{1234}foo\"")));383 try expect(eql(u8, "bytes\u{1234}foo", try parseAlloc(alloc, "\"bytes\\u{1234}foo\"")));
384 try expect(eql(u8, "foo", try parseAlloc(alloc, "\"foo\"")));384 try expect(eql(u8, "foo", try parseAlloc(alloc, "\"foo\"")));
385 try expect(eql(u8, "foo", try parseAlloc(alloc, "\"f\x6f\x6f\"")));385 try expect(eql(u8, "foo", try parseAlloc(alloc, "\"f\\x6f\\x6f\"")));
386 try expect(eql(u8, "f💯", try parseAlloc(alloc, "\"f\u{1f4af}\"")));386 try expect(eql(u8, "f💯", try parseAlloc(alloc, "\"f\\u{1f4af}\"")));
387 try expect(eql(u8, "\xed\xa0\x80", try parseAlloc(alloc, "\"\\u{d800}\"")));387 try expect(eql(u8, "\xed\xa0\x80", try parseAlloc(alloc, "\"\\u{d800}\"")));
388}388}