From 54d31221cde112ddd3e4fb2b1086875d030a536d Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 17 Sep 2019 00:16:33 +0100 Subject: [PATCH] Add missing cs.is_satisfied() to bellman test --- src/gadgets/boolean.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gadgets/boolean.rs b/src/gadgets/boolean.rs index a228d39..52b6cb8 100644 --- a/src/gadgets/boolean.rs +++ b/src/gadgets/boolean.rs @@ -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::::new(); let b2 = AllocatedBit::alloc(&mut cs, Some(true)).unwrap();