all repos — min @ d09f14619013d89c694d8083cb5f875b08313ef7

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