aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-26 19:14:22 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-01-02 17:12:57 -0700
commit1fbe89dc2e204defc18add72efd2bba4dbe728fc (patch)
tree2002b7d890016ebff5d7205bcfd4fbb8ccd0749e /lib/std/testing.zig
parentd2f6fa1608f31cbd7137f81b5dd6df2977766eae (diff)
downloadzig-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.zig3
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}", .{