all repos — min @ 3286ac59bd12b6ce89e210c41d7b1cffb8276cfe

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