File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ Rebol [
106
106
--assert dir = what-dir
107
107
108
108
--test-- "script with quit"
109
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1734
109
110
;@@ https://github.com/Oldes/Rebol-issues/issues/2250
110
111
--assert unset? do %units/files/quit.r3
111
112
--assert 42 = do %units/files/quit-return.r3
@@ -735,6 +736,16 @@ Rebol [
735
736
a: 0 catch /quit [++ a halt ++ a]
736
737
--assert a == 1
737
738
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
+
738
749
===end-group===
739
750
740
751
You can’t perform that action at this time.
0 commit comments