| author | |
| committer | |
| log | 88eb3ae8e5ff5aa53ff197ca3e008502b043936f |
| tree | 2f8ff4772bd3857b7a0ed4a12c1e903000a424c5 |
| parent | 7bc95316982da0da6fd5d935645972fe5464e46e |
1 files changed, 6 insertions(+), 1 deletions(-)
lib/std/testing.zig+6-1| ... | @@ -53,7 +53,12 @@ pub fn expectEqual(expected: anytype, actual: @TypeOf(expected)) void { | ... | @@ -53,7 +53,12 @@ pub fn expectEqual(expected: anytype, actual: @TypeOf(expected)) void { |
| 53 | .Void, | 53 | .Void, |
| 54 | => return, | 54 | => return, |
| 55 | 55 | ||
| 56 | .Type, | 56 | .Type => { |
| 57 | if (actual != expected) { | ||
| 58 | std.debug.panic("expected type {}, found type {}", .{ @typeName(expected), @typeName(actual) }); | ||
| 59 | } | ||
| 60 | }, | ||
| 61 | |||
| 57 | .Bool, | 62 | .Bool, |
| 58 | .Int, | 63 | .Int, |
| 59 | .Float, | 64 | .Float, |