Exit
exit
Exit an interpreter
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly "".
Exit an interpreter with a true value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the exit status should be 0.
Exit an interpreter with a false value
Given a file named “main.scm” with:
When I run scheme main.scm
Then the exit status should not be 0.
Leave a dynamic extent
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “AB”.
emergency-exit
Exit an interpreter
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly "".
Exit an interpreter with a true value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the exit status should be 0.
Exit an interpreter with a false value
Given a file named “main.scm” with:
When I run scheme main.scm
Then the exit status should not be 0.
Leave a dynamic extent
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly "".