Add missing cs.is_satisfied() to bellman test

This commit is contained in:
Jack Grigg 2019-09-17 00:16:33 +01:00
parent 3701c2b442
commit 39a73c8eda
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
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();