diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-02-25 21:29:56 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-01 13:57:41 -0500 |
| commit | 00be934569d25e3b041091ff63a4cf6c456d1403 (patch) | |
| tree | 0e041a8f62b213acec0016cdb041fec59f50a07d /lib/std/testing.zig | |
| parent | 3c1432701129bacf95b944f0f86af2d96ae72c69 (diff) | |
| download | zig-00be934569d25e3b041091ff63a4cf6c456d1403.tar.gz zig-00be934569d25e3b041091ff63a4cf6c456d1403.zip | |
short std.builtin enum literals in std lib
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 398a71ff37..4f527ba700 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -63,15 +63,11 @@ pub fn expectEqual(expected: var, actual: @TypeOf(expected)) void { .Pointer => |pointer| { switch (pointer.size) { - .One, - .Many, - .C, - => { + .One, .Many, .C => { if (actual != expected) { std.debug.panic("expected {*}, found {*}", .{ expected, actual }); } }, - .Slice => { if (actual.ptr != expected.ptr) { std.debug.panic("expected slice ptr {}, found {}", .{ expected.ptr, actual.ptr }); |
