add more tests

This commit is contained in:
Mark Thom
2018-02-22 18:33:00 -07:00
parent bdd4fe6eb3
commit 5c5257bdbd
2 changed files with 14 additions and 9 deletions

View File

@@ -370,7 +370,7 @@ impl CallWithInferenceLimitCallPolicy {
*policy = Box::new(new_policy);
}
fn increment(&mut self) -> CallResult {
fn increment(&mut self) -> CallResult {
if let Some(&(ref limit, bp)) = self.limits.last() {
if self.count == **limit {
return Err(functor!(self.atom_tbl,