Kaydet (Commit) 95b3a6c7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326893 silence FE: Test for floating point equality

Change-Id: I8a0b657942cbe3de559a6b115fad2229490f8985
üst 29215619
...@@ -143,15 +143,14 @@ public class _XCell extends MultiMethodTest { ...@@ -143,15 +143,14 @@ public class _XCell extends MultiMethodTest {
* Has <b> OK </b> status if the value set is equal to value get. <p> * Has <b> OK </b> status if the value set is equal to value get. <p>
*/ */
public void _setValue() { public void _setValue() {
boolean result = true;
double cellValue = 0;
log.println("setValue() ..."); log.println("setValue() ...");
oObj.setValue(222.333) ; double inValue = 222.333;
cellValue = oObj.getValue() ; oObj.setValue(inValue) ;
double cellValue = oObj.getValue() ;
result &= (cellValue == 222.333); boolean result = Double.valueOf(cellValue).equals(inValue);
tRes.tested("setValue()", result); tRes.tested("setValue()", result);
} // end setValue() } // end setValue()
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment