Skip to content

when

Evaluate a clause

Given a file named “main.scm” with:

(import (scheme base))
(when #t (write-u8 65))

When I successfully run scheme main.scm

Then the stdout should contain exactly “A”.

Do not evaluate a clause

Given a file named “main.scm” with:

(import (scheme base))
(when #f (write-u8 65))

When I successfully run scheme main.scm

Then the stdout should contain exactly "".