From f4f5c24c17e781dae08ebd34e885c547f55a2606 Mon Sep 17 00:00:00 2001 From: Nico Elbers Date: Tue, 25 Nov 2025 13:39:51 +0100 Subject: [PATCH] testing.expectEqualDeep: fix for enums with format method Previously enums with a format method tripped the condition of an ambiguous format string. --- lib/std/testing.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/testing.zig b/lib/std/testing.zig index b99542e7e57b..edfed3086416 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -760,7 +760,7 @@ fn expectEqualDeepInner(comptime T: type, expected: T, actual: T) error{TestExpe .error_set, => { if (actual != expected) { - print("expected {}, found {}\n", .{ expected, actual }); + print("expected {any}, found {any}\n", .{ expected, actual }); return error.TestExpectedEqual; } },