Multiple values
Pass multiple values to a continuation
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “A”.
Call call-with-values
with a value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “A”.
define-values
Define no value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the exit status should be 0.
Define a value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “A”.
Define multiple values
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “ABC”.
Define a list from values
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “ABC”.
Define values and a list from values
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “ABC”.
Define values in a definition
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “A”.
Define values in a definition multiple times
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “AB”.
Define values in a definition multiple times sequentially
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “AB”.
let-values
Define no value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the exit status should be 0.
Define a value
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “A”.
Define multiple values
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “ABC”.
Define a list from values
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “ABC”.
Define values and a list from values
Given a file named “main.scm” with:
When I successfully run scheme main.scm
Then the stdout should contain exactly “ABC”.