diff options
| author | edwin042331-hue <edwin042331@gmail.com> | 2026-11-22 11:27:20 -0400 |
|---|---|---|
| committer | edwin042331-hue <edwin042331@gmail.com> | 2026-11-22 11:27:20 -0400 |
| commit | a044f4e78bf9c991d3bc9d74b205df2cf9b3e85e (patch) | |
| tree | cf29341ae40f4ac9b3a09d01330f1d91c05be999 /tests | |
| parent | a827ff9f9695d1276f47b5f86f0fc05c38df96ff (diff) | |
docs/tests: fix measured baseline depth figure for 2,000 diamonds (2,000, not 4,000)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_cfg_structure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cfg_structure.py b/tests/test_cfg_structure.py index 47b073f8a..9bb885fbd 100644 --- a/tests/test_cfg_structure.py +++ b/tests/test_cfg_structure.py | |||
| @@ -199,7 +199,7 @@ def test_shapes(): | |||
| 199 | def test_deep_sequential_chains_stay_flat_and_iterative(): | 199 | def test_deep_sequential_chains_stay_flat_and_iterative(): |
| 200 | """Long chains of sequential if/else diamonds, sequential loops, and early-exit chains must structure without | 200 | """Long chains of sequential if/else diamonds, sequential loops, and early-exit chains must structure without |
| 201 | hitting Python's recursion limit and keep bounded OpSelectionMerge nesting depth.""" | 201 | hitting Python's recursion limit and keep bounded OpSelectionMerge nesting depth.""" |
| 202 | # 1. 2,000 sequential if/else diamonds (6,001 blocks): previously nested 4,000 levels deep and raised RecursionError. | 202 | # 1. 2,000 sequential if/else diamonds (6,001 blocks): previously nested 2,000 levels deep and raised RecursionError. |
| 203 | n_diamonds = 2000 | 203 | n_diamonds = 2000 |
| 204 | diamonds = [] | 204 | diamonds = [] |
| 205 | for k in range(n_diamonds): | 205 | for k in range(n_diamonds): |