Skip to content

unless

Evaluate a clause

Given a file named “main.scm” with:

(import (scheme base))
(unless #f (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))
(unless #t (write-u8 65))

When I successfully run scheme main.scm

Then the stdout should contain exactly "".