« Previous | Next » 

Revision d3fec1e7

IDd3fec1e77ee7af063c8bb85dd6303cc5ae2e64db
Child 6c4fbd6d, bdd54d18, 8c2d221b

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