diff options
| author | Daniele Cocca <daniele.cocca@gmail.com> | 2022-03-17 21:16:35 +0000 |
|---|---|---|
| committer | Daniele Cocca <daniele.cocca@gmail.com> | 2022-03-18 11:18:12 +0000 |
| commit | af8586da3a2f50c55c0c8e04152230cf71aa12d0 (patch) | |
| tree | bdb0a13de06dcd0e5249659e417af0e608c6d3e8 | |
| parent | f3f5a5d05b7056aceb408b701613242d053019ab (diff) | |
| download | zig-af8586da3a2f50c55c0c8e04152230cf71aa12d0.tar.gz zig-af8586da3a2f50c55c0c8e04152230cf71aa12d0.zip | |
tuple: replace expectEqual() with expect()
| -rw-r--r-- | test/behavior/tuple.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig index 6f9522834e..9497cc7ccb 100644 --- a/test/behavior/tuple.zig +++ b/test/behavior/tuple.zig @@ -2,7 +2,6 @@ const builtin = @import("builtin"); const std = @import("std"); const testing = std.testing; const expect = testing.expect; -const expectEqual = testing.expectEqual; test "tuple concatenation" { if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO @@ -18,8 +17,8 @@ test "tuple concatenation" { var x = .{a}; var y = .{b}; var c = x ++ y; - try expectEqual(@as(i32, 1), c[0]); - try expectEqual(@as(i32, 2), c[1]); + try expect(@as(i32, 1) == c[0]); + try expect(@as(i32, 2) == c[1]); } }; try S.doTheTest(); |
