Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test to cover RT #109306.
  • Loading branch information
jnthn committed Nov 5, 2015
1 parent 98054a2 commit e108d9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion S32-io/IO-Socket-INET.pl
Expand Up @@ -141,7 +141,9 @@
# Default separator should handle \n and \r\n
say $sock.get();
say $sock.get();
say $sock.get();
my $crlf-line = $sock.get();
say $crlf-line;
say $crlf-line.encode('ascii').elems;
$sock.nl-in = '.';
say $sock.get();
$sock.nl-in = '!';
Expand Down
5 changes: 4 additions & 1 deletion S32-io/IO-Socket-INET.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 47;
plan 48;

diag "{elapsed} starting tests";
my $elapsed;
Expand Down Expand Up @@ -135,6 +135,9 @@ if $*DISTRO.name eq any <linux Linux darwin solaris mswin32 macosx> { # please a
nok $elapsed > $toolong, "finished in time #11";
is $expected[$i++], 'All mimsy were the borogoves,',
"{elapsed} \\r\\n separator";
# RT #109306
is $expected[$i++], 29,
"{elapsed} \\r was not left behind on the string";
nok $elapsed > $toolong, "finished in time #12";
is $expected[$i++], 'And the mome raths outgrabe',
"{elapsed} . as a separator";
Expand Down

0 comments on commit e108d9d

Please sign in to comment.