This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
UCD.t: Skip PropValueAliases tests on early Unicodes
authorKarl Williamson <public@khwilliamson.com>
Mon, 26 Mar 2012 18:15:06 +0000 (12:15 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 2 Jun 2012 14:29:12 +0000 (08:29 -0600)
lib/Unicode/UCD.t

index 5bf426f..8b8baa5 100644 (file)
@@ -707,6 +707,9 @@ is(prop_value_aliases("gc", "isC"), undef, "prop_value_aliases('gc', 'isC') retu
 # correct.
 
 my %pva_tested;   # List of things already tested.
+
+SKIP: {
+skip "PropValueAliases.txt is not in this Unicode version", 1 if $v_unicode_version lt v3.2.0;
 open my $propvalues, "<", "../lib/unicore/PropValueAliases.txt"
      or die "Can't open Unicode PropValueAliases.txt";
 while (<$propvalues>) {
@@ -807,6 +810,7 @@ while (<$propvalues>) {
         $count++;
     }
 }
+}   # End of SKIP block
 
 # And test as best we can, the non-official pva's that mktables generates.
 foreach my $hash (\%utf8::loose_to_file_of, \%utf8::stricter_to_file_of) {