Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clean up behind masak; be more explicit in testing the retrieved line
  • Loading branch information
moritz committed Sep 12, 2011
1 parent dceb8e3 commit fcbbbbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions S16-filehandles/io.t
Expand Up @@ -13,7 +13,7 @@ I/O tests
=end pod

plan 82;
plan 83;

#?pugs emit if $*OS eq "browser" {
#?pugs emit skip_rest "Programs running in browsers don't have access to regular IO.";
Expand Down Expand Up @@ -225,7 +225,10 @@ $out.say("Foo Bar Baz");
$out.say("The End");
$out.close;

lives_ok { my $line = $filename.IO.get; }, "can read lines without explicitly opening IO";
my $line;
lives_ok { $line = $filename.IO.get; }, "can read lines without explicitly opening IO";
is $line, 'Hello World', 'got the right line from .IO.get';
unlink($filename);

done;

Expand Down

0 comments on commit fcbbbbe

Please sign in to comment.