Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt test for %h = {} deprecation message
  • Loading branch information
lizmat committed Jul 9, 2014
1 parent 3aa17a3 commit 32730f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S02-types/deprecations.t
Expand Up @@ -581,12 +581,12 @@ TEXT
my %h;
$line = $?LINE; %h = { a => 1 };
%h = { b => 2 };
is Deprecation.report, qq:to/TEXT/.chop.subst(/\r/, '', :g), 'deprecation %h = {...}';
is Deprecation.report, qq:to/TEXT/.chop.subst(/\r/, '', :g), 'deprecation %h = itemized hash';
Saw 1 call to deprecated code during execution.
================================================================================
%h = \{ ... } called at:
%h = itemized hash called at:
$*PROGRAM, lines $line,{$line + 1}
Please use %h = ... instead.
Please use %h = \%(itemized hash) instead.
--------------------------------------------------------------------------------
TEXT
} #1
Expand Down

0 comments on commit 32730f7

Please sign in to comment.