Skip to content

Commit 2cde898

Browse files
committed
added clarifying comments and more tests
1 parent bb013ec commit 2cde898

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

crates/lean_prover/tests/test_range_check.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,21 @@ fn test_prove_range_check_happy() {
157157
fn test_prove_range_check_sad_1() {
158158
do_test_range_check(0, 0);
159159
}
160+
161+
#[test]
162+
#[should_panic]
163+
fn test_prove_range_check_sad_2() {
164+
do_test_range_check(1, 0);
165+
}
166+
167+
#[test]
168+
#[should_panic]
169+
fn test_prove_range_check_sad_3() {
170+
do_test_range_check(2, 1);
171+
}
172+
173+
#[test]
174+
#[should_panic]
175+
fn test_prove_range_check_sad_4() {
176+
do_test_range_check(69, 65);
177+
}

0 commit comments

Comments
 (0)