Skip to content

Instantly share code, notes, and snippets.

/-

Created January 5, 2018 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/771af6f11e0adebae64a044aa404c3c0 to your computer and use it in GitHub Desktop.
Save anonymous/771af6f11e0adebae64a044aa404c3c0 to your computer and use it in GitHub Desktop.
1..28
ok 1 - buffer is flushed when IO handle is closed
ok 2 - Changing input-line-separator works for .lines
ok 3 - .path turns Str :path to IO::Path
ok 4 - .path has right value (Str :path)
ok 5 - .IO turns Str :path to IO::Path
ok 6 - .IO has right value (Str :path)
ok 7 - .Str returns Str :path as Str
ok 8 - .path keeps IO::Path :path as IO::Path
ok 9 - .path has right value (IO::Path :path)
ok 10 - .IO keeps IO::Path :path as IO::Path
ok 11 - .IO has right value (IO::Path :path)
ok 12 - .Str returns IO::Path :path as Str
ok 13 - can non-explosively .slurp(:close) a pipe with failed Proc
ok 14 - can call .close an already-closed handle
ok 15 - .DESTROY closes handles
ok 16 - `for IO::Handle` {...} iterates over 1 handle
1..10
ok 1 - .lines on IO::Path
ok 2 - .words on IO::Path
ok 3 - .comb(Regex) on IO::Path
ok 4 - .comb(Int) on IO::Path
ok 5 - .split on IO::Path
ok 6 - .lines on IO::Handle
ok 7 - .words on IO::Handle
ok 8 - .comb(Regex) on IO::Handle
ok 9 - .comb(Int) on IO::Handle
ok 10 - .split on IO::Handle
ok 17 - iterator-producing read methods not affected by internal chunking
ok 18 - instantiated handle defaults to utf8 encoding
1..2
ok 1 - content was flushed
1..2
ok 1 - code returned a Failure
1..2
ok 1 - code dies
ok 2 - right exception type (X::IO::Flush)
ok 2 - Failure threw when sunk
ok 2 - fails with correct exception
ok 19 - .flush
1..1
Multiple exceptions were thrown by LEAVE/POST phasers
Failed to open file /dev/pts/0: Permission denied
in block at t/spec/S32-io/io-handle.t line 115
in sub subtest at /usr/local/src/rakudo/install/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 414
in sub subtest at /usr/local/src/rakudo/install/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 404
in block <unit> at t/spec/S32-io/io-handle.t line 110
Failed to open file /dev/pts/0: Permission denied
in block at t/spec/S32-io/io-handle.t line 115
in sub subtest at /usr/local/src/rakudo/install/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 414
in sub subtest at /usr/local/src/rakudo/install/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 404
in block <unit> at t/spec/S32-io/io-handle.t line 110
# Looks like you planned 1 test, but ran 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment