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");...@@ -2,7 +2,6 @@ const builtin = @import("builtin");
2const std = @import("std");2const std = @import("std");
3const testing = std.testing;3const testing = std.testing;
4const expect = testing.expect;4const expect = testing.expect;
5const expectEqual = testing.expectEqual;
65
7test "tuple concatenation" {6test "tuple concatenation" {
8 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO7 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
...@@ -18,8 +17,8 @@ test "tuple concatenation" {...@@ -18,8 +17,8 @@ test "tuple concatenation" {
18 var x = .{a};17 var x = .{a};
19 var y = .{b};18 var y = .{b};
20 var c = x ++ y;19 var c = x ++ y;
21 try expectEqual(@as(i32, 1), c[0]);20 try expect(@as(i32, 1) == c[0]);
22 try expectEqual(@as(i32, 2), c[1]);21 try expect(@as(i32, 2) == c[1]);
23 }22 }
24 };23 };
25 try S.doTheTest();24 try S.doTheTest();