mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
testing.expectEqualDeep: fix for enums with format method
Previously enums with a format method tripped the condition of an ambiguous format string.
This commit is contained in:
parent
e4be00f949
commit
f4f5c24c17
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue