diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-11-26 19:14:22 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-02 17:12:57 -0700 |
| commit | 1fbe89dc2e204defc18add72efd2bba4dbe728fc (patch) | |
| tree | 2002b7d890016ebff5d7205bcfd4fbb8ccd0749e /lib/std/testing.zig | |
| parent | d2f6fa1608f31cbd7137f81b5dd6df2977766eae (diff) | |
| download | zig-1fbe89dc2e204defc18add72efd2bba4dbe728fc.tar.gz zig-1fbe89dc2e204defc18add72efd2bba4dbe728fc.zip | |
langref: Update langref to use {s}
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index d1f025c929..80cc7f930d 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -29,8 +29,7 @@ pub var zig_exe_path: []const u8 = undefined; /// and then aborts when actual_error_union is not expected_error. pub fn expectError(expected_error: anyerror, actual_error_union: anytype) void { if (actual_error_union) |actual_payload| { - // std.debug.panic("expected error.{s}, found {}", .{ @errorName(expected_error), actual_payload }); - std.debug.panic("expected error.{s}, found", .{@errorName(expected_error)}); + std.debug.panic("expected error.{s}, found {}", .{ @errorName(expected_error), actual_payload }); } else |actual_error| { if (expected_error != actual_error) { std.debug.panic("expected error.{s}, found error.{s}", .{ |
