File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Test nqp::op file operations.
4
4
5
- plan (66 );
5
+ plan (67 );
6
6
7
7
ok ( nqp ::stat(' CREDITS' , nqp ::const::STAT_EXISTS) == 1 , ' nqp::stat exists' );
8
8
ok ( nqp ::stat(' AARDVARKS' , nqp ::const::STAT_EXISTS) == 0 , ' nqp::stat not exists' );
@@ -23,6 +23,7 @@ ok( !nqp::eoffh($credits), 'Not at EOF after first line read');
23
23
ok ( nqp :: chars ($ line ) == 5 || nqp :: chars ($ line ) == 6 , ' nqp::readlinefh line to read' ); # =pod\r?\n
24
24
ok ( nqp ::tellfh($ credits ) == 5 || nqp ::tellfh($ credits ) == 6 , ' nqp::tellfh line two' );
25
25
my $ rest := nqp ::readallfh($ credits );
26
+ ok ( nqp ::eoffh($ credits ), ' At EOF after readallfh' );
26
27
ok ( nqp :: chars ($ rest ) > 100 , ' nqp::readallfh lines to read' );
27
28
ok ( nqp ::tellfh($ credits ) >= nqp :: chars ($ line ) + nqp :: chars ($ rest ), ' nqp::tellfh end of file' );
28
29
You can’t perform that action at this time.
0 commit comments