From: Sven Schöling Date: Thu, 30 Aug 2012 12:59:12 +0000 (+0200) Subject: format_amount testscript wieder gerade gezogen X-Git-Tag: release-3.0.0beta1~262^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dc03543f3a8623b24ad14b9e83a2aaf7d2fe7d20;p=kivitendo-erp.git format_amount testscript wieder gerade gezogen Die untere Hälfte Tests war in a0cd7d697f36397a32a90565fee3986f95f17e93 kaputtgegangen. --- diff --git a/t/form/format_amount.t b/t/form/format_amount.t index a5a4306c6..41a25c2d7 100644 --- a/t/form/format_amount.t +++ b/t/form/format_amount.t @@ -33,11 +33,11 @@ is($form->format_amount($config, -1000000000.1234, 2), '-1.000.000.000,12', 'for $config->{numberformat} = '1,000.00'; -is($form->format_amount($config, '1e1', 2), '10,00', 'format 1e1 (numberformat: 1,000.00)'); -is($form->format_amount($config, 1000, 2), '1.000,00', 'format 1000 (numberformat: 1,000.00)'); -is($form->format_amount($config, 1000.1234, 2), '1.000,12', 'format 1000.1234 (numberformat: 1,000.00)'); -is($form->format_amount($config, 1000000000.1234, 2), '1.000.000.000,12', 'format 1000000000.1234 (numberformat: 1,000.00)'); -is($form->format_amount($config, -1000000000.1234, 2), '-1.000.000.000,12', 'format -1000000000.1234 (numberformat: 1,000.00)'); +is($form->format_amount($config, '1e1', 2), '10.00', 'format 1e1 (numberformat: 1,000.00)'); +is($form->format_amount($config, 1000, 2), '1,000.00', 'format 1000 (numberformat: 1,000.00)'); +is($form->format_amount($config, 1000.1234, 2), '1,000.12', 'format 1000.1234 (numberformat: 1,000.00)'); +is($form->format_amount($config, 1000000000.1234, 2), '1,000,000,000.12', 'format 1000000000.1234 (numberformat: 1,000.00)'); +is($form->format_amount($config, -1000000000.1234, 2), '-1,000,000,000.12', 'format -1000000000.1234 (numberformat: 1,000.00)'); done_testing;