aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
diff options
context:
space:
mode:
authorDaniele Cocca <daniele.cocca@gmail.com>2022-03-17 21:16:35 +0000
committerDaniele Cocca <daniele.cocca@gmail.com>2022-03-18 11:18:12 +0000
commitaf8586da3a2f50c55c0c8e04152230cf71aa12d0 (patch)
treebdb0a13de06dcd0e5249659e417af0e608c6d3e8 /test/behavior
parentf3f5a5d05b7056aceb408b701613242d053019ab (diff)
downloadzig-af8586da3a2f50c55c0c8e04152230cf71aa12d0.tar.gz
zig-af8586da3a2f50c55c0c8e04152230cf71aa12d0.zip
tuple: replace expectEqual() with expect()
Diffstat (limited to 'test/behavior')
-rw-r--r--test/behavior/tuple.zig5
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();