Skip to content

Commit df5a843

Browse files
committed
Unfudge now-passing test
Also, clean it up a bit.
1 parent 29582e1 commit df5a843

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

S16-io/basic-open.t

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use v6;
2+
use lib <t/spec/packages>;
23
use Test;
4+
use Test::Util;
35

46
plan 12;
57

@@ -61,11 +63,7 @@ throws-like { open("this-surely-won't-exist", :r) }, Exception,
6163
}
6264

6365
# RT #126598
64-
#?rakudo todo 'end of file flag is set too early'
65-
{
66-
spurt("empty-line","\n");
67-
is open("empty-line").get, "", 'last empty line should be returned';
68-
unlink "empty-line";
69-
}
66+
is-deeply make-temp-file(content => "\n").open.get, "",
67+
'.get returns last empty';
7068

7169
# vim: ft=perl6

0 commit comments

Comments
 (0)