Skip to content

Commit

Permalink
Adjust tests to new $a[]:foo zen slice features
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 10, 2015
1 parent 95a2822 commit f2cfca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S32-array/adverbs.t
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,10 @@ for $@n, Any, $@s, Str -> @a, $T {
is @a[]:p($ok), (0=>"a",1=>"b",2=>"c",3=>"d"), "$n zen: :p";
is @a[]:!p, (0=>"a",1=>"b",2=>"c",3=>"d"), "$n zen: :!p";
is @a[]:p($no), (0=>"a",1=>"b",2=>"c",3=>"d"), "$n zen: :p(\$no)";
is @a[]:foo, @a, "$n zen:foo value";

throws-like '@a[]:k:v', X::Adverb::Slice,
:what(@a.name), :nogo(<k v>);
throws-like '@a[]:zen', X::AdHoc; # caught by MMD
throws-like '@a[]:kv:p:zip:zop', X::Adverb::Slice,
:what(@a.name), :nogo(<kv p>), :unexpected(<zip zop>);
} #20
Expand Down
2 changes: 1 addition & 1 deletion S32-hash/adverbs.t
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,10 @@ for $%a, Any, $%i, Int, $%c, Any, $%j, Int -> %h, $T {
is (%h{}:p($ok)).sort(*.key), (:1a,:2b,:3c,:4d), "$n zen: :p";
is (%h{}:!p).sort(*.key), (:1a,:2b,:3c,:4d), "$n zen: :!p";
is (%h{}:p($no)).sort(*.key), (:1a,:2b,:3c,:4d), "$n zen: :p(\$no)";
is %h{}:foo, %h, "$n zen:foo value";

throws-like '%h{}:k:v', X::Adverb::Slice,
:what(%h.name), :nogo(<k v>);
throws-like '%h{}:zen', X::AdHoc; # caught by MMD
throws-like '%h{}:kv:p:zip:zop', X::Adverb::Slice,
:what(%h.name), :nogo(<kv p>), :unexpected(<zip zop>);
} #20
Expand Down

0 comments on commit f2cfca2

Please sign in to comment.