all repos — min @ 7c7732e8fd30586e8d9c858491c0857cc3ffaf44

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 load
'test import

"io" describe

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

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

  "test.txt" rm
  report
  clear-stack