all repos — min @ c71b72eea158d7c5ff901184758d5ab98c35079f

A small but practical concatenative programming language.

tests/fs.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
@test
#test

"fs" describe

  "TEST" "test.txt" fwrite
  
  ("test.txt" fsize 4 ==) assert

  ("test.txt" fperms 644 ==) assert

  ("test.txt" ftype "file" ==) assert

  ("test.txt" hidden? false ==) assert

  ("test.txt" fstats 'type dget "file" ==) assert


  
  report
  clear
  "test.txt" rm