diff --git a/src/test.zig b/src/test.zig index 275cd4f..3afde54 100644 --- a/src/test.zig +++ b/src/test.zig @@ -130,9 +130,9 @@ test "linking same day twice" { try link_db.materialize(1); const meta = link_db.meta; - try expectEqual(meta.len, 1); + try expectEqual(@as(u16, 1), meta.len); - try expectEqualSlices(Link, link_db.links.items, &.{ Link{ .chain_id = 0, .timestamp = 1704063600, .tags = 0}}); + try expectEqualSlices(Link, &.{ Link{ .chain_id = 0, .timestamp = 1704063600, .tags = 0}}, link_db.links.items); } try runCommand(db.path, "link 1 20240101"); @@ -141,9 +141,9 @@ test "linking same day twice" { try link_db.materialize(1); const meta = link_db.meta; - try expectEqual(meta.len, 1); + try expectEqual(@as(u16, 1), meta.len); - try expectEqualSlices(Link, link_db.links.items, &.{ Link{ .chain_id = 0, .timestamp = 1704063600, .tags = 0}}); + try expectEqualSlices(Link, &.{ Link{ .chain_id = 0, .timestamp = 1704063600, .tags = 0}}, link_db.links.items); } }