Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests for GLR
This test file was forgotten in the merging mess surrounding allomorphs,
so it took a while for this to show up.
  • Loading branch information
ShimmerFairy committed Sep 19, 2015
1 parent 08154ac commit 3fdcdae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S02-literals/allomorphic.t
Expand Up @@ -118,7 +118,7 @@ lives-ok {val("foo")}, "val() exists";
{
my @wordlist = qw[1 2/3 4.5 6e7 8+9i] Z (IntStr, RatStr, RatStr, NumStr, ComplexStr);

for @wordlist -> $val, $wrong-type {
for @wordlist -> ($val, $wrong-type) {
isa-ok $val, Str, "'$val' from qw[] is a Str";
nok $val.isa($wrong-type), "'$val' from qw[] is not a $wrong-type.perl()";
}
Expand All @@ -127,7 +127,7 @@ lives-ok {val("foo")}, "val() exists";
{
my @wordlist = qqww[1 2/3 4.5 6e7 8+9i] Z (IntStr, RatStr, RatStr, NumStr, ComplexStr);

for @wordlist -> $val, $wrong-type {
for @wordlist -> ($val, $wrong-type) {
isa-ok $val, Str, "'$val' from qqww[] is a Str";
nok $val.isa($wrong-type), "'$val' from qqww[] is not a $wrong-type.perl()";
}
Expand Down

0 comments on commit 3fdcdae

Please sign in to comment.