Skip to content

Commit fe70ad4

Browse files
committed
1 parent 60f36c3 commit fe70ad4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/tests/units/evaluation-test.r3

+11
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Rebol [
106106
--assert dir = what-dir
107107

108108
--test-- "script with quit"
109+
;@@ https://github.com/Oldes/Rebol-issues/issues/1734
109110
;@@ https://github.com/Oldes/Rebol-issues/issues/2250
110111
--assert unset? do %units/files/quit.r3
111112
--assert 42 = do %units/files/quit-return.r3
@@ -735,6 +736,16 @@ Rebol [
735736
a: 0 catch/quit [++ a halt ++ a]
736737
--assert a == 1
737738

739+
--test-- "catch/quit [quit]"
740+
;@@ https://github.com/Oldes/Rebol-issues/issues/1734
741+
a: 0
742+
--assert unset? catch/quit [++ a quit ++ a]
743+
--assert a == 1;
744+
--assert 100 = catch/quit [++ a quit/return 100 ++ a]
745+
--assert a == 2;
746+
--assert 0 = call/shell/wait join system/options/boot { --do "quit"}
747+
--assert 100 = call/shell/wait join system/options/boot { --do "quit/return 100"}
748+
738749
===end-group===
739750

740751

0 commit comments

Comments
 (0)