Function expectEqual [src]
This function is intended to be used only in tests. When the two values are not
equal, prints diagnostics to stderr to show exactly how they are not equal,
then returns a test failure error.
actual and expected are coerced to a common type using peer type resolution.
Prototype
pub inline fn expectEqual(expected: anytype, actual: anytype) !void Source
pub inline fn expectEqual(expected: anytype, actual: anytype) !void {
const T = @TypeOf(expected, actual);
return expectEqualInner(T, expected, actual);
}