X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fform%2Fformat_amount.t;h=8de39a2e33e2ac7543610db1691d8dc249f6a03c;hb=1d96e96182f306f5f4eba8861960e772578d564a;hp=229c88cd56b51516d204b62f6802cf7a1cd8cda2;hpb=8d8bcfb58757551f46a362230274a1248277af5f;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