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

Carl Franks fireartist at gmail.com
Thu Apr 9 07:41:24 GMT 2009


applied!

Thanks,
Carl


2009/4/6 Moritz Onken <onken at houseofdesign.de>:
> 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
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>



More information about the HTML-FormFu mailing list