From dc03543f3a8623b24ad14b9e83a2aaf7d2fe7d20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 30 Aug 2012 14:59:12 +0200 Subject: [PATCH] format_amount testscript wieder gerade gezogen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die untere Hälfte Tests war in a0cd7d697f36397a32a90565fee3986f95f17e93 kaputtgegangen. --- t/form/format_amount.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.20.1