Skip to content

Commit

Permalink
Merge branch 'lem_div' of github.com:lurk-lab/lurk-rs into lem_div
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpaulino committed Aug 18, 2023
2 parents b98904b + 09a39fa commit 30a08e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/circuit/gadgets/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ mod tests {
}

#[test]
fn test_enforce_u64() {
fn test_implies_u64_positive() {
let mut cs = TestConstraintSystem::<Fr>::new();

let alloc_num = AllocatedNum::alloc(&mut cs.namespace(|| "num"), || {
Expand All @@ -1332,10 +1332,11 @@ mod tests {
}

#[test]
fn test_enforce_u64_negative() {
fn test_implies_u64_negative() {
let mut cs = TestConstraintSystem::<Fr>::new();

let alloc_num = AllocatedNum::alloc(&mut cs.namespace(|| "num"), || {
// Edge case: 2ˆ64 = 18446744073709551616
Ok(Fr::from_str_vartime("18446744073709551616").unwrap())
})
.unwrap();
Expand Down

0 comments on commit 30a08e4

Please sign in to comment.