Skip to content

Commit

Permalink
remove awkward tuple declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Oct 11, 2023
1 parent 90a6a0c commit 5ec16f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree.zig
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ fn stringLessThan(a: []const u8, b: []const u8) bool {
}

test "testing string lessThan" {
const testcases = [_]std.meta.Tuple(&[_]type{ []const u8, []const u8, bool }){
const testcases = .{
.{ "a", "a", false },
.{ "a", "aa", true },
.{ "a", "b", true },
.{ "b", "a", false },
.{ "a", "A", false }, // A > a
};
for (testcases) |case| {
inline for (testcases) |case| {
try testing.expectEqual(case.@"2", stringLessThan(case.@"0", case.@"1"));
}
}
Expand Down

0 comments on commit 5ec16f0

Please sign in to comment.