begin
Use a begin
expression
Section titled “Use a begin expression”Given a file named “main.scm” with:
(import (scheme base))
(write-u8 (begin 65))(write-u8 (begin 65 66))(write-u8 (begin 65 66 67))
When I successfully run stak main.scm
Then the stdout should contain exactly “ABC”.
Use a begin
expression with no value
Section titled “Use a begin expression with no value”Given a file named “main.scm” with:
(import (scheme base))
(write-u8 (begin))
When I run stak main.scm
Then the exit status should not be 0.