all repos — min @ a8ed662581805f4d4bfd9a3b3074a7b7e3447a0e

A small but practical concatenative programming language.

tests/io.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
'test include

"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