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:
Nico Elbers 2025-11-25 13:39:51 +01:00
parent e4be00f949
commit f4f5c24c17
No known key found for this signature in database
GPG key ID: 519CE81FDA71EE73

View file

@ -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;
}
},