Skip to content

Commit

Permalink
add another stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Dec 19, 2022
1 parent bab0697 commit 32e89e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/generators/infinite-recursion4.clvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(a (q 2 2 (c 2 (c 5 (c 11 ())))) (c (q 11 (substr 11 (q . 1)) (substr 11 (q . 2)) (substr 11 (q . 3)) (substr 11 (q . 5)) (a 2 (c 2 (c 5 ())))) 1))
FAILED: 117
2 changes: 2 additions & 0 deletions tests/generators/recursion-pairs.clvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(a (q 2 2 (c 2 (c (c (q "hey" "hey" "hey") (c (q . "world") (c (q . "world") (c 5 ())))) ()))) (c (q 2 (i 5 (q 2 2 (c 2 (c (c 5 7) ()))) ()) 1) 1))
FAILED: 117
3 changes: 3 additions & 0 deletions tests/test-generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def parse_output(result, error_code) -> str:
elif "deep-recursion-plus" in g:
limit = 8
strict_limit = 6
elif "generators/recursion-pairs.clvm" in g:
limit = 14
limit = 4

if sys.version_info[:2] == (3, 11):
limit *= 1.3
Expand Down

0 comments on commit 32e89e1

Please sign in to comment.