all repos — min @ 877cfd95409ab21b1ec1ec77c24249bf1411b2fb

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
  stack.clear