Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
blessingbytes committed Nov 29, 2024
1 parent 9dbce12 commit c58a9cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,14 @@ mod to_u256 {

assert_eq!(result, BigInteger256::from_bits_be(&[false; 32][..]));
}

#[test]
fn test_to_u256_zero_value() {
let low = "0x0000000000000000";
let high = "0x0000000000000000";

let result = to_u256(low, high);

assert_eq!(result, BigInteger256::from_bits_be(&[false; 32][..]));
}
}

0 comments on commit c58a9cc

Please sign in to comment.