diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2026-06-22 19:05:48 +0200 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2026-06-22 19:05:48 +0200 |
| commit | 8308e303a88779be0d0a6249d2d79ca56eb05ed0 (patch) | |
| tree | 524e5fb474ce890fbf1e9b5311a7e7cdba33b0de /src/test/strings.zig | |
| parent | 476632d9559b1e3bacbd226df336116cac8544ea (diff) | |
Fix tests etc.
Diffstat (limited to 'src/test/strings.zig')
| -rw-r--r-- | src/test/strings.zig | 6 |
1 files changed, 3 insertions, 3 deletions
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)); } |
