Skip to content

Commit

Permalink
Make tests less language name specific
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat authored and Altai-man committed Jan 26, 2020
1 parent 91928e0 commit 2a90b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S02-types/array.t
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ my @array2 = ("test", 1, Mu);

throws-like '@arr[-2]',
X::Obsolete,
message => 'Unsupported use of a negative -2 subscript to index from the end; in Perl 6 please use a function such as *-2',
message => /^ 'Unsupported use of a negative -2 subscript to index from the end;'/,
"readonly accessing [-2] of normal array throws X::Obsolete and is fatal";
throws-like { @arr[ $minus_one ] },
X::OutOfRange,
Expand Down
3 changes: 2 additions & 1 deletion S05-metasyntax/charset.t
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ ok 'b' ~~ /<[. .. b]>/, 'weird char class matches at least its end point';
# RT #69682
{
try { EVAL "/<[a-z]>/"; }
ok ~$! ~~ / 'Unsupported use of - as character range; in Perl 6 please use ..'/,
# TODO Replace when the actual error message is changed.
ok ~$! ~~ / 'Unsupported use of - as character range; in '/,
"STD error message for - as character range";
}

Expand Down

0 comments on commit 2a90b8d

Please sign in to comment.