From c58a9cc6f2aef5d95b05f2534f04c6472fc0fe9a Mon Sep 17 00:00:00 2001 From: Aguwa Blessing <150056008+blessingbytes@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:34:08 +0000 Subject: [PATCH] add test --- src/tests/utils.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tests/utils.rs b/src/tests/utils.rs index 2ad1b03..e0f7cd9 100644 --- a/src/tests/utils.rs +++ b/src/tests/utils.rs @@ -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][..])); + } }