all repos — min @ 3e33d91cada9f5aa369230a9b72a4a2c44b4f943

A small but practical concatenative programming language.

tests/io.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
'test require :test
;;;

"io" *test/describe

  ("TEST" "test.txt" fwrite
   "test.txt" fread "TEST" ==) *test/assert

  (" - TEST" "test.txt" fappend
   "test.txt" fread "TEST - TEST" ==) *test/assert

  "test.txt" rm
  *test/report
  clear-stack