projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler independence
[kivitendo-erp.git]
/
t
/
form
/
format_amount.t
diff --git
a/t/form/format_amount.t
b/t/form/format_amount.t
index
229c88c
..
8de39a2
100644
(file)
--- 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, 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
# dash stuff