all repos — min @ e84235fe5956a79451bdd550ba47b59b87ea6830

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