Skip to content

Commit 637500d

Browse files
committed
[io grant] Spec IO::Pipe.path/.IO returns IO::Path type object
Rakudo impl: rakudo/rakudo@d46e8df4cb
1 parent 100eb07 commit 637500d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

S32-io/pipe.t

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 14;
4+
plan 16;
55

66
shell_captures_out_ok '', '', 0, 'Child succeeds but does not print anything';
77
shell_captures_out_ok 'say 42', '42', 0, 'Child succeeds and prints something';
@@ -53,4 +53,10 @@ sub shell_captures_out_ok($code, $out, $exitcode, $desc) {
5353
my $p = shell "$*EXECUTABLE -e \"say 42 for ^10\"", :out;
5454
my @lines = $p.out.lines;
5555
ok all(@lines) eq '42', 'There is no empty line due to no EOF for pipes';
56-
}
56+
}
57+
58+
with run(:out, $*EXECUTABLE, '-e', '').out {
59+
is-deeply .IO, IO::Path, '.IO returns an IO::Path type object';
60+
is-deeply .path, IO::Path, '.path returns an IO::Path type object';
61+
.close;
62+
}

0 commit comments

Comments
 (0)