qadevOOo/tests/java/ifc/table/_XCell.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
New commits: commit 95b3a6c722dd39668ac812d39ee7b4c6a78ac01e Author: Caolán McNamara <[email protected]> Date: Wed Nov 4 15:30:43 2015 +0000 coverity#1326893 silence FE: Test for floating point equality Change-Id: I8a0b657942cbe3de559a6b115fad2229490f8985 diff --git a/qadevOOo/tests/java/ifc/table/_XCell.java b/qadevOOo/tests/java/ifc/table/_XCell.java index 00c393e..353e8d6b 100644 --- a/qadevOOo/tests/java/ifc/table/_XCell.java +++ b/qadevOOo/tests/java/ifc/table/_XCell.java @@ -143,15 +143,14 @@ public class _XCell extends MultiMethodTest { * Has <b> OK </b> status if the value set is equal to value get. <p> */ public void _setValue() { - boolean result = true; - double cellValue = 0; log.println("setValue() ..."); - oObj.setValue(222.333) ; - cellValue = oObj.getValue() ; + double inValue = 222.333; + oObj.setValue(inValue) ; + double cellValue = oObj.getValue() ; - result &= (cellValue == 222.333); + boolean result = Double.valueOf(cellValue).equals(inValue); tRes.tested("setValue()", result); - } // end setValue() + } // end setValue() }
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
