Burak Gürsoy avatar Burak Gürsoy committed df63a46

Fix the ID class

Comments (0)

Files changed (3)

 Revision history for Perl extension Lingua::Any::Numbers.
 
+0.43 Tue Apr  5 02:03:43 2011
+   => USe the right class to fix the test.
+
 0.42 Mon Apr  4 02:44:28 2011
    => I love when people update their code and break mine.
          ID module fixed a ws issue after 12 years.

lib/Lingua/Any/Numbers.pm

 use warnings;
 use vars qw( $VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS );
 
-$VERSION = '0.42';
+$VERSION = '0.43';
 
 use subs qw(
    to_string
    my $pt = language_handler( 'PT' );
    my $sv = language_handler( 'SV' );
 
-   if ( $id  && ! $id->isa('Lingua::SV::Numbers') ) {
+   if ( $id && $id->isa('Lingua::ID::Nums2Words') ) {
       # an update after 12 years fixed this issue in v0.02
-      my $v = Lingua::SV::Numbers->VERSION || 0;
+      my $v = $id->VERSION || 0;
       if ( $v eq '0.01' ) {
          $LANG{ID}->{string} .= q{ };
          diag("Fixing test data for $id");
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.