Repository navigation
Commit 8a9e492
committed
test(suites): convert the regex surface
Smell-audited: 1: routine port on the established path.
phase6_regex_cycle1.sh 25 spawns -> suites/regex_test.clj
Two of its cases drove `cljw -` with a heredoc rather than `-e`, to assert
what `prn` PRINTS for a regex: the `#"…"` reader form from pr/prn (JVM
print-method Pattern) versus the raw pattern from str (Pattern.toString).
Those are still representation assertions, so they keep pr-str/str rather
than becoming value equality.
The INV-1 case is kept and labelled: a nested-counted-repetition compile bomb
`(a{65535}){65535}`, which would expand to ~4.3e9 instructions, must raise a
CATCHABLE IllegalArgumentException rather than OOM or kill the process. The
matcher is a Pike NFA and so is ReDoS-immune on untrusted input; this guards
the compile side, which is the remaining exposure.
The archived ROADMAP names this script as the Phase 6.6 EXIT smoke. That is a
dated record of how the phase exited and stays as written; the pins live on
in the suite.
25 more spawns leave the gate; 698 for the arc across 20 scripts. Suite tier
25 suites / 208 tests / 1163 assertions / 0 failures. e2e 393 scripts (from
410). Gates: e2e_reach, runner_reach 68 units, e2e_dup, accepted_divergences
60 pinned.1 parent 4e55cda commit 8a9e492
3 files changed
Lines changed: 68 additions & 130 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | 479 | | |
481 | 480 | | |
482 | 481 | | |
| |||
0 commit comments