milis/talimatname/genel/l/libetonyek/0001-fix-test-on-i686.patch

28 lines
913 B
Diff
Raw Normal View History

2018-06-09 00:06:58 +02:00
From b63a2f52d95243aef4660b2d4573f0e149eeb9a6 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Wed, 22 Feb 2017 15:03:19 -0500
Subject: [PATCH] fix test on i686
Change-Id: Ib9dafdfd76175cc6bbcd94596f7a7bd8b924ed34
---
src/test/IWORKTransformationTest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/IWORKTransformationTest.cpp b/src/test/IWORKTransformationTest.cpp
index 77f0b27..5e96e60 100644
--- a/src/test/IWORKTransformationTest.cpp
+++ b/src/test/IWORKTransformationTest.cpp
@@ -232,7 +232,7 @@ void IWORKTransformationTest::testInverseOperations()
CPPUNIT_ASSERT(scale(2, 1) * scale(0.5, 1) == eye);
CPPUNIT_ASSERT(scale(1, 2) * scale(1, 0.5) == eye);
- CPPUNIT_ASSERT(scale(3, 2) * scale(1.0 / 3, 0.5) == eye);
+ CPPUNIT_ASSERT(approxEqual(scale(3, 2) * scale(1.0 / 3, 0.5), eye));
// CPPUNIT_ASSERT(shear() == eye);
--
2.11.1