Skip to content

Commit

Permalink
Deep comparison for a usability win
Browse files Browse the repository at this point in the history
  • Loading branch information
joelreymont authored and Hejsil committed Nov 28, 2024
1 parent 79555cf commit 075ecd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mecha.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ pub fn expectResult(comptime T: type, expected: Result(T), actual: Result(T)) !v
[]const u8 => try testing.expectEqualStrings(expected_value, actual_value),
else => switch (@typeInfo(T)) {
.pointer => |ptr| try testing.expectEqualSlices(ptr.child, expected_value, actual_value),
else => try testing.expectEqual(expected_value, actual_value),
else => try testing.expectEqualDeep(expected_value, actual_value),
},
}
},
Expand Down

0 comments on commit 075ecd1

Please sign in to comment.