Subject: | test suite uses deprecated 'defined %hash' |
check_data_structure.t uses a defined check on a hash. This is deprecated
in 5.11. Removing the defined should work just as well.
Patch attached for fix.
Subject: | patch.txt |
diff --git a/t/check_data_structure.t b/t/check_data_structure.t
index 096cbd8..4e6970b 100644
--- a/t/check_data_structure.t
+++ b/t/check_data_structure.t
@@ -3,7 +3,7 @@
use Test::More 'no_plan';
use_ok( 'Business::ISBN::Data' );
-ok( defined %Business::ISBN::country_data );
+ok( %Business::ISBN::country_data );
foreach my $key ( sort { $a <=> $b } keys %Business::ISBN::country_data )
{
@@ -15,4 +15,4 @@ foreach my $key ( sort { $a <=> $b } keys %Business::ISBN::country_data )
my $count = @$ranges;
ok( ($count % 2) == 0, "Even number of elements ($count) for country $key" );
- }
\ No newline at end of file
+ }