Skip to content

Commit

Permalink
Rename tests for externals
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Nov 22, 2024
1 parent e7985f4 commit 2ef4405
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stdlib/ext/file-ext.mc
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ with ("Hello", "Next string", "Final", "EOF") in

-- Test reading x amount of characters from the file
utest
match readOpen filename with Some rc then
let l1 = match readBytes rc 3 with Some s then s else "" in
let l2 = match readBytes rc 4 with Some s then s else "" in
let l3 = match readBytes rc 0 with Some s then s else "" in
let l4 = match readBytes rc 1 with Some s then s else "" in
readClose rc;
match fileReadOpen filename with Some rc then
let l1 = match fileReadBytes rc 3 with Some s then s else "" in
let l2 = match fileReadBytes rc 4 with Some s then s else "" in
let l3 = match fileReadBytes rc 0 with Some s then s else "" in
let l4 = match fileReadBytes rc 1 with Some s then s else "" in
fileReadClose rc;
(l1,l2,l3,l4)
else ("Error reading file","","","")
with ("Hel", "lo\nN", "", "e") in
Expand Down

0 comments on commit 2ef4405

Please sign in to comment.