From 8308e303a88779be0d0a6249d2d79ca56eb05ed0 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Mon, 22 Jun 2026 19:05:48 +0200 Subject: Fix tests etc. --- 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 09aa988..f0cdde9 100644 --- a/src/test/strings.zig +++ b/src/test/strings.zig @@ -13,13 +13,13 @@ test "istr" { const s1 = "foo bar baz"; const v1 = try istr.getOrNew(s1); const v1_len: usize = @intCast(fx.unpack(istr.getLen(v1))); - try testing.expectEqualStrings(s1, istr.assert(v1).str()); + try testing.expectEqualStrings(s1, istr.getBytes(v1)); try testing.expectEqual(s1.len, v1_len); const s2 = @embedFile("data/string.txt"); const v2 = try istr.getOrNew(s2); const v2_len: usize = @intCast(fx.unpack(istr.getLen(v2))); - try testing.expectEqualStrings(s2, istr.assert(v2).str()); + try testing.expectEqualStrings(s2, istr.getBytes(v2)); 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 = try istr.getOrNew(&s3); s3[0] = 'x'; - try testing.expectEqualStrings("test", istr.assert(v3).str()); + try testing.expectEqualStrings("test", istr.getBytes(v3)); } -- cgit v1.2.3