1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-16 00:07:40 +00:00
Check for empty capture stack in replace rule.
This commit is contained in:
Calvin Rose
2020-03-06 10:01:04 -06:00
parent f9e9c70b6c
commit 714bd61d56
2 changed files with 14 additions and 5 deletions

View File

@@ -112,4 +112,9 @@
(assert (= false (and false false)) "and 1")
(assert (= false (or false false)) "or 1")
# #300 Regression test
# Just don't segfault
(assert (peg/match '{:main (replace "S" {"S" :spade})} "S7") "regression #300")
(end-suite)