Skip to content

Commit

Permalink
Test that nqp::escape works on \r\n.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Nov 7, 2015
1 parent 61f36ca commit c4c2b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/nqp/59-nqpop.t
Expand Up @@ -126,7 +126,7 @@ ok( nqp::not_i(0) == 1, 'nqp::not_i');
ok( nqp::not_i(1) == 0, 'nqp::not_i');
ok( nqp::not_i(-1) == 0, 'nqp::not_i');

ok(nqp::escape("\b \n \r \f \t \" \\ \e foo") eq '\\b \\n \\r \\f \\t \\" \\\\ \e foo','nqp::escape');
ok(nqp::escape("\b \n \r \f \t \" \r\n \\ \e foo") eq '\\b \\n \\r \\f \\t \\" \\r\\n \\\\ \e foo','nqp::escape');
my $var := 'foo';
ok(nqp::escape($var) eq 'foo','nqp::escape works with literal');

Expand Down

0 comments on commit c4c2b73

Please sign in to comment.