diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-24 09:23:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-24 10:35:43 +0000 |
commit | 61273b37ecc521c6f00c480dccf0ef4d39d4d49a (patch) | |
tree | aaea649dc18a3fc0fd4383d4e030094cca48ea58 /qadevOOo | |
parent | 6318552774961c101beaa3020ede018e4c7a00d3 (diff) |
coverity#1326892 FE: Test for floating point equality
Change-Id: I47b9ccf2685bd0f37ee2722e93fad9ed668c3b81
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java index 541e0d07e1dd..72f3ceaf6c0b 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java @@ -37,6 +37,7 @@ import com.sun.star.uno.UnoRuntime; import lib.MultiMethodTest; import lib.Status; import lib.StatusException; +import util.utils; /** * Testing <code>com.sun.star.sheet.XDataPilotTable2</code> @@ -121,7 +122,7 @@ public class _XDataPilotTable2 extends MultiMethodTest } log.println(formatCell(addr) + ": " + data.length + " rows (" + (data.length-1) + " records)"); - if (val != sum) + if (!utils.approxEqual(val, sum)) testResult = false; } tRes.tested("getDrillDownData()", testResult); |