Skip to content

Commit c677b73

Browse files
author
Carl Masak
committed
[S06-macros/macros-d1.t] fixed a test a bit
Rakudo presently fails this one; fixed so that it fails it in a nicer way.
1 parent d217498 commit c677b73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

S06-macros/macros-d1.t

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22

33
use Test;
4-
plan 9;
4+
plan 10;
55

66
# Just to avoid tedium, the macros in this file are
77
# named after Santa's reindeers.
@@ -98,9 +98,10 @@ plan 9;
9898

9999
{
100100
macro blitzen($param) {
101-
quasi { $param x 3 }
101+
quasi { $param }
102102
}
103103

104-
is blitzen("ho!"), "ho!ho!ho!",
104+
my $result = blitzen("ho ho ho");
105+
is $result, "ho ho ho",
105106
"lexical lookup from quasi to macro params works";
106107
}

0 commit comments

Comments
 (0)