Skip to content

Commit

Permalink
fix expect order
Browse files Browse the repository at this point in the history
  • Loading branch information
schmee committed Jan 24, 2024
1 parent 5208b68 commit 8751baf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 8751baf

Please sign in to comment.