all repos — min @ d0d644faeeecdd1812927dbd61b3061ab3e81187

A small but practical concatenative programming language.

tests/io.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
'min-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