Skip to content

Commit 3eb0b1b

Browse files
committed
TEST: evaluation in optional parse rule
1 parent 0976daf commit 3eb0b1b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tests/units/parse-test.r3

+7
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,13 @@ if not error? try [str: to string! #{A032}][
942942
e/id = 'parse-rule
943943
e/arg1 = quote :pos
944944
]
945+
--test-- "evaluation in optional rule"
946+
;@@ https://gitter.im/red/bugs?at=638e27b34cb5585f9666500d
947+
x: false
948+
--assert all [
949+
not parse [1] [opt (x: true)]
950+
x
951+
]
945952

946953
--test-- "empty string rule"
947954
;@@ https://github.com/Oldes/Rebol-issues/issues/1880

0 commit comments

Comments
 (0)