Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[advent2012-day22.t] GLRify 'IP address parse' example. unfudge RT121789
  • Loading branch information
dwarring committed Sep 1, 2015
1 parent 97b6b02 commit e6fa419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/advent2012-day22.t
Expand Up @@ -25,7 +25,7 @@ my @ip4addrs = .comb(/ (\d ** 1..3) ** 4 % '.' /);
is-deeply @ip4addrs, [<127.0.0.1 173.194.32.32>], '.comb';

@ip = ();
@ip.push(.list>>.Str.perl) for m:g/ (\d ** 1..3) ** 4 % '.' /;
#?rakudo todo 'RT #121789'
is-deeply @ip, [q<("127", "0", "0", "1")>, q<("173", "194", "32", "32")>], 'integer parse';
@ip.push(.list>>.Str[0].perl) for m:g/ (\d ** 1..3) ** 4 % '.' /;
# RT #121789'
is-deeply @ip, [q<["127", "0", "0", "1"]>, q<["173", "194", "32", "32"]>], 'integer parse';

0 comments on commit e6fa419

Please sign in to comment.