Bug ID: 19759
Summary: TestBuilder generates too many decimals for float
Change sponsored?: ---
Priority: P5 - low
Component: Test Suite
Assignee: [hidden email] Reporter: [hidden email] QA Contact: [hidden email]
For instance items.replacementprice is decimal(8,2) but more than 2 decimals
It leads to issues when we compare expected objects:
Signed-off-by: Marcel de Rooy <[hidden email]>
Somehow I have the feeling that we should allow more decimals sometimes
and perhaps have a number of decimals parameter or so. Think of fields
like currency or discount.
But the current issues justify this change.
t/db_dependent/Circulation/Chargelostitem.t .. 1/6
# Failed test 'The accountline amount should be precessfee value '
# at t/db_dependent/Circulation/Chargelostitem.t line 71.
# got: '4.5968041848873e+20'
# expected: '459680418488730451968.00'