From cd25a1acae128b660f60a0132ffb981e08442cd4 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Thu, 4 Jun 2026 19:47:54 +0200 Subject: Fix tests. --- src/test/strings.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/strings.zig') diff --git a/src/test/strings.zig b/src/test/strings.zig index 58a460b..b8db320 100644 --- a/src/test/strings.zig +++ b/src/test/strings.zig @@ -13,13 +13,13 @@ test "istr" { const s1 = "foo bar baz"; const v1 = istr.intern(s1); const v1_len: usize = @intCast(fx.unpack(istr.len(v1))); - try testing.expectEqualStrings(s1, istr.assert(v1).bytes()); + try testing.expectEqualStrings(s1, istr.assert(v1).str()); try testing.expectEqual(s1.len, v1_len); const s2 = @embedFile("data/string.txt"); const v2 = istr.intern(s2); const v2_len: usize = @intCast(fx.unpack(istr.len(v2))); - try testing.expectEqualStrings(s2, istr.assert(v2).bytes()); + try testing.expectEqualStrings(s2, istr.assert(v2).str()); try testing.expectEqual(s2.len, v2_len); // Check that modifying a slice doesn't affect the string. @@ -27,5 +27,5 @@ test "istr" { var s3 = "test".*; const v3 = istr.intern(&s3); s3[0] = 'x'; - try testing.expectEqualStrings("test", istr.assert(v3).bytes()); + try testing.expectEqualStrings("test", istr.assert(v3).str()); } -- cgit v1.2.3