scheme-libraries/retropikzel/mouth/test.scm

15 lines
284 B
Scheme

(test-begin "mouth")
(spit "/tmp/mouthtestfile" "Hello world")
(test-assert (string=? (slurp "/tmp/mouthtestfile") "Hello world"))
(spit "/tmp/mouthtestfile" ", and append" #t)
(test-assert (string=? (slurp "/tmp/mouthtestfile") "Hello world, and append"))
(test-end "mouth")