Commit 61285cc7 authored by Jérome Perrin's avatar Jérome Perrin

more tests for float field


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34753 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b8413d0
......@@ -122,6 +122,10 @@ class TestFloatField(ERP5TypeTestCase):
self.assertEquals('0.01', self.widget.format_value(self.field, 0.011))
# value is rounded
self.assertEquals('0.01', self.widget.format_value(self.field, 0.009999))
self.assertEquals('1.00',
self.widget.format_value(self.field, sum([0.1] * 10)))
self.assertEquals('566.30',
self.widget.format_value(self.field, 281.80 + 54.50 + 230.00))
def test_render_view(self):
self.field.values['input_style'] = '-1 234.5'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment