X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fhelper%2Fnumber.t;h=e50bd219fee5b9d9cbaebf6bd3f024821936ce45;hb=af8f0a39dd0739e1ec5acdeee46bc28cd891de69;hp=f3604f2a3065722c8d32674ae5def4d9802fa993;hpb=5c0b85694a2586940933285a6547910eb17db02f;p=kivitendo-erp.git diff --git a/t/helper/number.t b/t/helper/number.t index f3604f2a3..e50bd219f 100644 --- a/t/helper/number.t +++ b/t/helper/number.t @@ -27,7 +27,7 @@ sub test_format { } # test _format_total - if ($places == 2) { + if (($places // 0) == 2) { is (_format_total($amount, numberformat => $numberformat, dash => $dash), $expected, "$comment - explicit"); { @@ -61,8 +61,6 @@ test_format('1.00045', 1.00045, -5, '1,000.00', undef, 'negative places 2'); test_format('1.00', 1, -2, '1,000.00', undef, 'negative places 3'); # bugs amd edge cases -$config->{numberformat} = '1.000,00'; - test_format('0,00005', 0.00005, undef, '1.000,00', undef, 'messing with small numbers and no precision'); test_format('0', undef, undef, '1.000,00', undef, 'undef'); test_format('0', '', undef, '1.000,00', undef, 'empty string');