Sha256: 22174fa88becc0856f84f8789e58b0a072da0fdba50f1c02ef588155ab913cab
Contents?: true
Size: 793 Bytes
Versions: 27
Compression:
Stored size: 793 Bytes
Contents
#!/usr/bin/env apl --script ⍝ Clear logfile with given filename. ∇test∆clear_log filename handle←'w' ⎕FIO[3] filename _←⎕FIO[4] handle ∇ ⍝ )COPY file relative to current directory. ∇test∆copy_relative path _←⍎ ')COPY ',test¯pwd,'/',path ∇ ⍝ Write logfile with given filename to stderr as UTF-8. ∇test∆show_log filename cr←⎕ucs 10 test¯warn cr,'***** TEST LOG *****',cr,cr test¯warn test¯read_unicode filename ∇ ⍝ private ⍝ Return current directory as a string. ∇pwd←test¯pwd pwd←⎕FIO 30 ∇ ⍝ Read a UTF-8 file into a Unicode character vector. ∇unicode←test¯read_unicode filename unicode←19⎕CR ⎕FIO[26] filename ∇ ⍝ Write string to stderr. ∇test¯warn string _←'%s' string ⎕FIO[22] 2 ∇
Version data entries
27 entries across 27 versions & 1 rubygems