summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-15 12:46:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-15 14:26:05 +0100
commit528d2ce57ac5736860b69d9a2f414daa79b98794 (patch)
tree7d57aa9e20d83f791056cf33cc36bea9df458283 /qadevOOo
parentab22d11279db912f1b69a48b0fa676972b189aea (diff)
see if this will silence cid#1326879 FE: Test for floating point equality
Change-Id: I1b5cdad7bda19c7cab19b062ad15cf67282ecefb
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/awt/_XCurrencyField.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java b/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java
index 01bb6032383a..3b03b866fb8e 100644
--- a/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java
+++ b/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java
@@ -154,9 +154,10 @@ public class _XCurrencyField extends MultiMethodTest {
requiredMethod("getFirst()");
boolean result = true;
- oObj.setFirst(first + 1.1);
+ double value = first + 1.1;
+ oObj.setFirst(value);
double ret = oObj.getFirst();
- result = ret == first + 1.1;
+ result = ret == value;
tRes.tested("setFirst()", result);
}