« Previous | Next » 

Revision 3e5706e6

ID3e5706e657e4ec2ca2f0e31d1dc4b235e0830692

Added by Karsten Dambekalns almost 8 years ago

[TASK] Fix unit test failing due to float precision issue

Fixes two unit tests failing with something like::

Expected: "12.34"
Actual: "12.339999999999999857891452847979962825775146484375"

We just raise the value from 12.34 to 112.34 - that makes it
112.34000000... which makes the test pass.

Change-Id: Ib55e4cb36c5f13a0707507125ef5579f591acd9d
Releases: master, 2.1, 2.0

  • added
  • modified
  • copied
  • renamed
  • deleted