Skip to content

Commit f99ad1c

Browse files
committed
fix integration/advent2009-day09.t
1 parent df26d3c commit f99ad1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

integration/advent2009-day09.t

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use v6;
44
use Test;
5-
plan 18;
5+
plan 17;
66

77
sub sum {
88
[+] @_ ;
@@ -57,7 +57,6 @@ is grade_essay("How to eat a Fish", 0), 0, 'P6 auto unpacking/verification';
5757
ok (entreat()), 'Default values for parameters works';
5858
is (xml_tag("hi")), "hihi>", 'Default values using previously supplied arguments';
5959
nok deactivate("Rakudo Quality Fission"), 'optional parameters';
60-
is (drawline(:x1(1),:y2(4),:x2(2),:y1(3))), (1,2,3,4), 'Passing named parameters';
6160
dies_ok {drawline2(1,2,3,4)}, 'Must be named';
6261
ok (drawline2(:x1(3))), 'When you force naming, they are not all required.';
6362
#the required & must-be named (:$var!) test not here, its opposite is 1 up
@@ -71,7 +70,7 @@ is $t, 4, 'Set a parameter to "is rw", and then you can modify';
7170
up1_3($t);
7271
is $t, 4, '"is copy" leaves original alone"';
7372
my @te = <a b c>;
74-
dies_ok {namen(@te)}, 'Autoflattening doesnt exist';
73+
dies_ok {eval 'namen(@te)' }, 'Autoflattening doesnt exist';
7574
is (namen(|@te)), ('a','b','c'), "Put a | in front of the variable, and you're ok!";
7675

7776
is <734043054508967647390469416144647854399310>.comb(/.**7/).join('|') , '7340430|5450896|7647390|4694161|4464785|4399310' , 'Test one liner at end of post (part1)';

0 commit comments

Comments
 (0)