X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fform%2Fformat_amount.t;h=8de39a2e33e2ac7543610db1691d8dc249f6a03c;hb=a8fb17eaa5b626f00321bfa6b661488849c736e5;hp=229c88cd56b51516d204b62f6802cf7a1cd8cda2;hpb=8edb2ea1ebaa8cb4961aba4e9b5dd96c0191d338;p=kivitendo-erp.git diff --git a/t/form/format_amount.t b/t/form/format_amount.t index 229c88cd5..8de39a2e3 100644 --- a/t/form/format_amount.t +++ b/t/form/format_amount.t @@ -51,6 +51,8 @@ is($::form->format_amount($config, 10, -2), '10,00' , 'autotrim does not harm in is($::form->format_amount($config, 10, 0), '10', 'autotrim does not harm integers 4'); is($::form->format_amount($config, 0, 0), '0' , 'trivial zero'); +is($::form->format_amount($config, -0.002, 2), '0,00' , 'negative zero'); +is($::form->format_amount($config, -0.002, 3), '-0,002' , 'negative zero'); # dash stuff