Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit aa4f824

Browse files
committed
add tests for large numbers
1 parent e7ac7cc commit aa4f824

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

token/confidential-transfer/proof-tests/tests/proof_test.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ fn test_transfer_with_fee_correctness() {
6969

7070
test_transfer_with_fee_proof_validity(100, 100, 5, 10);
7171
test_transfer_with_fee_proof_validity(100, 100, 5, 1);
72+
73+
test_transfer_with_fee_proof_validity(65535, 65535, 5, 10);
74+
test_transfer_with_fee_proof_validity(65535, 65535, 5, 1);
75+
76+
test_transfer_with_fee_proof_validity(65536, 65536, 5, 10);
77+
test_transfer_with_fee_proof_validity(65536, 65536, 5, 1);
78+
79+
test_transfer_with_fee_proof_validity(281474976710655, 281474976710655, 5, 10); // 2^48 - 1
80+
test_transfer_with_fee_proof_validity(281474976710655, 281474976710655, 5, 1);
7281
}
7382

7483
fn test_transfer_with_fee_proof_validity(

0 commit comments

Comments
 (0)