issues
search
ChainSafe
/
fixed-sized-numbers-ts
Fixed Sized BigNumbers in TypeScript
2
stars
4
forks
source link
Math tests for Uint128, Uint256, Int128, Int256
#1
Open
ansermino
opened
5 years ago
ansermino
commented
5 years ago
(Written by @JonathanLorimer)
[x] Test addition with Uint128 (normal case, overflow case)
[x] Test subtraction with Uint128 (normal case, underflow case)
[x] Test multiplication with Uint128 (normal case, overflow case)
[x] Test division with Uint128 (normal case, division with 0 case)
[x] Test addition with Uint256 (normal case, overflow case)
[x] Test subtraction with Uint256 (normal case, underflow case)
[x] Test multiplication with Uint256 (normal case, overflow case)
[x] Test division with Uint256 (normal case, division with 0 case)
[x] Test addition with Int128 (normal case, overflow case positive, overflow case negative)
[x] Test subtraction with Int128 (normal case, overflow case positive, overflow case negative))
[x] Test multiplication with Int128 (normal case, overflow case positive, overflow case negative)
[x] Test division with Int128 (normal case, division with 0 case)
[x] Test addition with Int256 (normal case, overflow case positive, overflow case negative)
[x] Test subtraction with Int256 (normal case, overflow case positive, overflow case negative)
[x] Test multiplication with Int256 (normal case, overflow case positive, overflow case negative)
[x] Test division with Int256 (normal case, division with 0 case)
(Written by @JonathanLorimer)