From a8c0f1d962753f0d7ebd5d09baacca8046f088d5 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Wed, 16 Jan 2013 18:33:35 +0400 Subject: [PATCH] fixing test failure on some systems --- .../src/org/opencv/test/core/TermCriteriaTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/java/android_test/src/org/opencv/test/core/TermCriteriaTest.java b/modules/java/android_test/src/org/opencv/test/core/TermCriteriaTest.java index 523a39d0ac..fbba838afe 100644 --- a/modules/java/android_test/src/org/opencv/test/core/TermCriteriaTest.java +++ b/modules/java/android_test/src/org/opencv/test/core/TermCriteriaTest.java @@ -77,7 +77,8 @@ public class TermCriteriaTest extends OpenCVTestCase { public void testToString() { String actual = tc2.toString(); - String expected = "{ type: 2, maxCount: 4, epsilon: " + EPS + "}"; + double eps = EPS; + String expected = "{ type: 2, maxCount: 4, epsilon: " + eps + "}"; assertEquals(expected, actual); }