[Koha-bugs] [Bug 19759] TestBuilder generates too many decimals for float
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 8 22:11:52 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19759
Dominic Pichette <dominic.pichette at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #69566|0 |1
is obsolete| |
--- Comment #3 from Dominic Pichette <dominic.pichette at inlibro.com> ---
Created attachment 69666
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69666&action=edit
Bug 19759: Make TestBuilder generates only 2 decimals for float
For instance items.replacementprice is decimal(8,2) but more than 2 decimals
are generated.
It leads to issues when we compare expected objects:
# got: '135623.866142537'
# expected: '135623.87'
Test plan:
prove t/db_dependent/TestBuilder.t
must return green
Signed-off-by: Dominic Pichette <dominic at inlibro.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list