Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes now List is back to being a reference type.
  • Loading branch information
jnthn committed Sep 4, 2015
1 parent 777fc21 commit f12a825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions S02-types/list.t
Expand Up @@ -88,10 +88,10 @@ is $(;).elems, 0, '$(;) parses, and is empty';
} #2

{
cmp-ok <a b c>, '===', <a b c>, 'a b c === a b c';
ok (my $x1=42,1) !=== (42,1), '$x1 = 42,1 !==== 42,1'; # !=== not an op
ok (my $x2=42,1) !=== (my $y=42,1), '$x2 = 42,1 !==== $y = 42,1';
cmp-ok (my $x3=42,1), '===', (my $y2:=$x3,1), '$x3=42,1 ==== $y2 := $x3,1';
ok <a b c> !=== <a b c>, 'a b c !=== a b c (List is not a value type)';
ok (my $x1=42,1) !=== (42,1), '$x1 = 42,1 !=== 42,1';
ok (my $x2=42,1) !=== (my $y=42,1), '$x2 = 42,1 !=== $y = 42,1';
ok (my $x3=42,1) !=== (my $y2:=$x3,1), '$x3=42,1 !=== $y2 := $x3,1 (List is not a value type)';
} #4

{
Expand Down
3 changes: 2 additions & 1 deletion S32-list/squish.t
Expand Up @@ -159,5 +159,6 @@ This test tests the C<squish> builtin and .squish method on Any/List.
is-deeply( @a, [<a b c>], '.= squish in sink context works on @a' );
} #2

is ((3,3,1),(1,2),(1,2)).squish.list.Str, '3 3 1 1 2', ".squish doesn't flatten";
my @a := (1, 2);
is ((3,3,1),@a,@a).squish.list.Str, '3 3 1 1 2', ".squish doesn't flatten";
# vim: ft=perl6

0 comments on commit f12a825

Please sign in to comment.