Skip to content

Boolean

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (if (boolean? <value>) 65 66))

When I successfully run stak main.scm

Then the stdout should contain exactly “<output>”.

valueoutput
#fA
#tA
’()B

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (if (not <value>) 65 66))

When I successfully run stak main.scm

Then the stdout should contain exactly “<output>”.

valueoutput
#fA
#tB

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (if (boolean=? <values>) 65 66))

When I successfully run stak main.scm

Then the stdout should contain exactly “<output>”.

valuesoutput
#f #fA
#f #tB
#t #fB
#t #tA
#f #f #fA
#t #t #tA
#f #f #tB
#t #t #fB