scheme-libraries/retropikzel/mouth/snow-test.scm

16 lines
351 B
Scheme

(import (scheme base)
(retropikzel mouth)
(srfi 64))
(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")