Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove no-longer-needed line endings hack.
  • Loading branch information
jnthn committed Nov 12, 2015
1 parent 98520ce commit 82c7b6b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions integration/advent2013-day04.t
Expand Up @@ -3,9 +3,7 @@ use Test;

plan 7;

sub un-r($str) { $str.subst("\r\n", "\n", :g) }

is un-r(q:to"FIN"), "Hello again.\n", 'basic heredoc with :to';
is q:to"FIN", "Hello again.\n", 'basic heredoc with :to';
Hello again.
FIN

Expand All @@ -15,7 +13,7 @@ HELLO WORLD noend

throws-like { $str.EVAL }, Exception, 'Runaway multiline is an error, no exception object yet';

is un-r(q:to[finished]), " Hello there\n everybody\n", "indention of heredocs
is q:to[finished], " Hello there\n everybody\n", "indention of heredocs
(1)";
Hello there
everybody
Expand All @@ -36,7 +34,7 @@ is $first, $second, "Indention stripped to end delimiter indention";
my $dlrs = 21;
my $cnts = 18;

is un-r(q:to/EOF/).chop, '$dlrs dollars and {$cnts} cents.', 'no interpolation by
is q:to/EOF/.chop, '$dlrs dollars and {$cnts} cents.', 'no interpolation by
default';
$dlrs dollars and {$cnts} cents.
EOF
Expand All @@ -45,6 +43,6 @@ is q:to:c/EOF/.chop, '$dlrs dollars and 18 cents.', ':c enables closure compilat
$dlrs dollars and {$cnts} cents.
EOF

is un-r(qq:to/EOF/).chop, '21 dollars and 18 cents.', 'heredocs with qq interpolate';
is qq:to/EOF/.chop, '21 dollars and 18 cents.', 'heredocs with qq interpolate';
$dlrs dollars and {$cnts} cents.
EOF

0 comments on commit 82c7b6b

Please sign in to comment.