authorgravatar for daniele.cocca@gmail.comDaniele Cocca <daniele.cocca@gmail.com> 2022-03-17 21:16:35+00:00
committergravatar for daniele.cocca@gmail.comDaniele Cocca <daniele.cocca@gmail.com> 2022-03-18 11:18:12+00:00
logaf8586da3a2f50c55c0c8e04152230cf71aa12d0
treebdb0a13de06dcd0e5249659e417af0e608c6d3e8
parentf3f5a5d05b7056aceb408b701613242d053019ab

tuple: replace expectEqual() with expect()


1 files changed, 2 insertions(+), 3 deletions(-)

test/behavior/tuple.zig+2-3
......@@ -2,7 +2,6 @@ const builtin = @import("builtin");
22const std = @import("std");
33const testing = std.testing;
44const expect = testing.expect;
5const expectEqual = testing.expectEqual;
65
76test "tuple concatenation" {
87 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
......@@ -18,8 +17,8 @@ test "tuple concatenation" {
1817 var x = .{a};
1918 var y = .{b};
2019 var c = x ++ y;
21 try expectEqual(@as(i32, 1), c[0]);
22 try expectEqual(@as(i32, 2), c[1]);
20 try expect(@as(i32, 1) == c[0]);
21 try expect(@as(i32, 2) == c[1]);
2322 }
2423 };
2524 try S.doTheTest();