Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed May 28, 2023
1 parent 60f36c3 commit fe70ad4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/tests/units/evaluation-test.r3
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Rebol [
--assert dir = what-dir

--test-- "script with quit"
;@@ https://github.com/Oldes/Rebol-issues/issues/1734
;@@ https://github.com/Oldes/Rebol-issues/issues/2250
--assert unset? do %units/files/quit.r3
--assert 42 = do %units/files/quit-return.r3
Expand Down Expand Up @@ -735,6 +736,16 @@ Rebol [
a: 0 catch/quit [++ a halt ++ a]
--assert a == 1

--test-- "catch/quit [quit]"
;@@ https://github.com/Oldes/Rebol-issues/issues/1734
a: 0
--assert unset? catch/quit [++ a quit ++ a]
--assert a == 1;
--assert 100 = catch/quit [++ a quit/return 100 ++ a]
--assert a == 2;
--assert 0 = call/shell/wait join system/options/boot { --do "quit"}
--assert 100 = call/shell/wait join system/options/boot { --do "quit/return 100"}

===end-group===


Expand Down

0 comments on commit fe70ad4

Please sign in to comment.