mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
fix tests for math.mulWide
This commit is contained in:
parent
66f13ba807
commit
d494a5f4cf
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
test "math.wideMul" {
|
||||
testing.expect(wideMul(u8, 5, 5) == 25);
|
||||
testing.expect(wideMul(i8, 5, -5) == -25);
|
||||
testing.expect(wideMul(u8, 100, 100) == 10000);
|
||||
test "math.mulWide" {
|
||||
testing.expect(mulWide(u8, 5, 5) == 25);
|
||||
testing.expect(mulWide(i8, 5, -5) == -25);
|
||||
testing.expect(mulWide(u8, 100, 100) == 10000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue