fix tests for math.mulWide

This commit is contained in:
Shawn Landden 2019-03-29 06:46:30 -05:00 committed by Andrew Kelley
parent 66f13ba807
commit d494a5f4cf

View file

@ -812,8 +812,8 @@ pub fn mulWide(comptime T: type, a: T, b: T) @IntType(T.is_signed, T.bit_count *
return ResultInt(a) * ResultInt(b); return ResultInt(a) * ResultInt(b);
} }
test "math.wideMul" { test "math.mulWide" {
testing.expect(wideMul(u8, 5, 5) == 25); testing.expect(mulWide(u8, 5, 5) == 25);
testing.expect(wideMul(i8, 5, -5) == -25); testing.expect(mulWide(i8, 5, -5) == -25);
testing.expect(wideMul(u8, 100, 100) == 10000); testing.expect(mulWide(u8, 100, 100) == 10000);
} }