use all rules, not just the previous iter
@@ -151,19 +151,28 @@ mod test {
#[test]
fn simple() {
+ let mut all_rules = vec![];
let atoms3 = iter_bool(3);
assert_eq!(atoms3.force().len(), 93);
let rules3 = Bool::run_workload(atoms3, vec![]);
assert_eq!(rules3.len(), 14);
+ all_rules.extend(rules3);
let atoms4 = iter_bool(4);
assert_eq!(atoms4.force().len(), 348);
- let rules4 = Bool::run_workload(atoms4, rules3);
+ let rules4 = Bool::run_workload(atoms4, all_rules.clone());
assert_eq!(rules4.len(), 5);
+ all_rules.extend(rules4);
let atoms5 = iter_bool(5);
assert_eq!(atoms5.force().len(), 4599);
+
+ let rules5 = Bool::run_workload(atoms5, all_rules.clone());
+ assert_eq!(rules5.len(), 21);
+ all_rules.extend(rules5);
+
+ assert_eq!(all_rules.len(), 40);
}
}
