mirror of
https://github.com/ziglang/zig.git
synced 2025-12-20 21:23:06 +00:00
tuple: replace expectEqual() with expect()
This commit is contained in:
parent
f3f5a5d05b
commit
af8586da3a
@ -2,7 +2,6 @@ const builtin = @import("builtin");
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const testing = std.testing;
|
const testing = std.testing;
|
||||||
const expect = testing.expect;
|
const expect = testing.expect;
|
||||||
const expectEqual = testing.expectEqual;
|
|
||||||
|
|
||||||
test "tuple concatenation" {
|
test "tuple concatenation" {
|
||||||
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
|
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
|
||||||
@ -18,8 +17,8 @@ test "tuple concatenation" {
|
|||||||
var x = .{a};
|
var x = .{a};
|
||||||
var y = .{b};
|
var y = .{b};
|
||||||
var c = x ++ y;
|
var c = x ++ y;
|
||||||
try expectEqual(@as(i32, 1), c[0]);
|
try expect(@as(i32, 1) == c[0]);
|
||||||
try expectEqual(@as(i32, 2), c[1]);
|
try expect(@as(i32, 2) == c[1]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
try S.doTheTest();
|
try S.doTheTest();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user