Skip to content

Commit 935dae2

Browse files
committed
$*IN.words.unique with no new line at the end must NOT hang
RT#126487
1 parent 7a5ad3c commit 935dae2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

S16-filehandles/misc.t

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
use v6;
2+
use Test;
3+
plan 1;
4+
5+
# RT#126487
6+
{
7+
my $printer = run $*EXECUTABLE, "-e",
8+
q{print "cat dog cat dog bird dog Snake snake Snake"},
9+
:out;
10+
11+
my $reader = run $*EXECUTABLE, "-e", q{say $*IN.words.unique},
12+
:out,
13+
:in($printer.out);
14+
15+
is $reader.out.get, '(cat dog bird Snake snake)',
16+
'$*IN.words.unique with no new line at the end must NOT hang'
17+
~ " [using `$*EXECUTABLE` as Perl 6 executable]";
18+
}

0 commit comments

Comments
 (0)