diff options
author | Renee <reb@perl-services.de> | 2015-01-11 11:19:09 +0100 |
---|---|---|
committer | Renee <reb@perl-services.de> | 2015-01-11 11:19:09 +0100 |
commit | 48b07f0bbeb0dce66633c37c2bf683f8652bb6f6 (patch) | |
tree | 449d952ee1f04a3ac2e6ca49c5d7b1b0836d6346 /t | |
parent | 5bad2ce46e2e1b0a70995fcc6c3cb2013a667cb1 (diff) | |
download | package-stash-48b07f0bbeb0dce66633c37c2bf683f8652bb6f6.tar.gz package-stash-48b07f0bbeb0dce66633c37c2bf683f8652bb6f6.zip |
avoid Perl 5.21.x sprintf warning
In Perl 5.21 a new warning was introduced for too many arguments for printf/sprintf.
Diffstat (limited to 't')
-rw-r--r-- | t/addsub.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,7 +30,7 @@ ok(defined($Foo::{funk}), '... the &funk slot was created successfully'); is((Foo->funk())[0], 'Foo::funk', '... got the right value from the function'); my $line = (Foo->funk())[1]; -is $DB::sub{'Foo::funk'}, sprintf "%s:%d-%d", __FILE__, $line, $line, +is $DB::sub{'Foo::funk'}, sprintf( "%s:%d-%d", __FILE__, $line, $line ), '... got the right %DB::sub value for funk default args'; $foo_stash->add_symbol( @@ -40,7 +40,7 @@ $foo_stash->add_symbol( last_line_num => 199 ); -is $DB::sub{'Foo::dunk'}, sprintf "%s:%d-%d", "FileName", 100, 199, +is $DB::sub{'Foo::dunk'}, sprintf( "%s:%d-%d", "FileName", 100, 199 ), '... got the right %DB::sub value for dunk with specified args'; done_testing; |