[html-formfu] Patch for failing formatnumber.t test

Moritz Onken onken at houseofdesign.de
Mon Apr 6 14:46:39 GMT 2009


Hi,

this patch fixes the failing test:

Index: /Users/mo/Documents/workspace/HTML-FormFu/t/filters/ 
formatnumber.t
===================================================================
--- /Users/mo/Documents/workspace/HTML-FormFu/t/filters/formatnumber.t	 
(revision 1415)
+++ /Users/mo/Documents/workspace/HTML-FormFu/t/filters/formatnumber.t	 
(working copy)
@@ -29,7 +29,7 @@

      my $formatted_number = $format->format_number('23000222.22');

-    is( $formatted_number, '23.000.222,22', 'number is in german  
formatting' );
+    isnt( $formatted_number, '23000222.22', 'format of number has  
changed' );

      # restore orginal locale
      setlocale( LC_NUMERIC, $backup_locale );

The problem with locales is that each OS has it's own set of locales.  
They don't match and in that
case the locales of bsd and mac os are not the correct ones.

moritz



More information about the HTML-FormFu mailing list