| ... | ... | @@ -585,16 +585,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { |
| 585 | 585 | \\ comptime format: []const u8, |
| 586 | 586 | \\ args: anytype, |
| 587 | 587 | \\) void { |
| 588 | | \\ const level_txt = switch (level) { |
| 589 | | \\ .emerg => "emergency", |
| 590 | | \\ .alert => "alert", |
| 591 | | \\ .crit => "critical", |
| 592 | | \\ .err => "error", |
| 593 | | \\ .warn => "warning", |
| 594 | | \\ .notice => "notice", |
| 595 | | \\ .info => "info", |
| 596 | | \\ .debug => "debug", |
| 597 | | \\ }; |
| 588 | \\ const level_txt = comptime level.asText(); |
| 598 | 589 | \\ const prefix2 = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): "; |
| 599 | 590 | \\ const stdout = std.io.getStdOut().writer(); |
| 600 | 591 | \\ nosuspend stdout.print(level_txt ++ prefix2 ++ format ++ "\n", args) catch return; |
| ... | ... | @@ -638,16 +629,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { |
| 638 | 629 | \\ comptime format: []const u8, |
| 639 | 630 | \\ args: anytype, |
| 640 | 631 | \\) void { |
| 641 | | \\ const level_txt = switch (level) { |
| 642 | | \\ .emerg => "emergency", |
| 643 | | \\ .alert => "alert", |
| 644 | | \\ .crit => "critical", |
| 645 | | \\ .err => "error", |
| 646 | | \\ .warn => "warning", |
| 647 | | \\ .notice => "notice", |
| 648 | | \\ .info => "info", |
| 649 | | \\ .debug => "debug", |
| 650 | | \\ }; |
| 632 | \\ const level_txt = comptime level.asText(); |
| 651 | 633 | \\ const prefix2 = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): "; |
| 652 | 634 | \\ const stdout = std.io.getStdOut().writer(); |
| 653 | 635 | \\ nosuspend stdout.print(level_txt ++ prefix2 ++ format ++ "\n", args) catch return; |