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