Add missing cs.is_satisfied() to bellman test

This commit is contained in:
Jack Grigg 2019-09-17 00:16:33 +01:00
parent 52bf23c5ce
commit 54d31221cd
1 changed files with 2 additions and 0 deletions

View File

@ -1797,6 +1797,8 @@ mod test {
AllocatedBit::alloc_conditionally(cs.namespace(|| "alloc_conditionally"), value, &b1)
.unwrap();
assert!(cs.is_satisfied());
//check with true bit
let mut cs = TestConstraintSystem::<Bls12>::new();
let b2 = AllocatedBit::alloc(&mut cs, Some(true)).unwrap();