Skip to content

Commit

Permalink
Merge pull request #106 from Chia-Network/generator-test
Browse files Browse the repository at this point in the history
add more stress tests
  • Loading branch information
arvidn authored Dec 20, 2022
2 parents bab0697 + 3e6cc58 commit f612e7a
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
strict_limit = 4

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

0 comments on commit f612e7a

Please sign in to comment.