From 73973adca270259ca0f0fe4e1c8eacf0b3b446fa Mon Sep 17 00:00:00 2001 From: Steven Chamberlain Date: Wed, 24 Feb 2016 01:04:11 +0000 Subject: [PATCH] testBoxAlgo: allow fuzzy match of b12 == b2 Also fix a pre-existing typo. Gbp-Pq: Name testBoxAlgo.patch --- ImathTest/testBoxAlgo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ImathTest/testBoxAlgo.cpp b/ImathTest/testBoxAlgo.cpp index 9be1b7c..d61963c 100644 --- a/ImathTest/testBoxAlgo.cpp +++ b/ImathTest/testBoxAlgo.cpp @@ -886,10 +886,11 @@ boxMatrixTransform () assert (approximatelyEqual (b2.min, b4.min, e)); assert (approximatelyEqual (b2.max, b4.max, e)); - assert (approximatelyEqual (b3.max, b4.max, e)); + assert (approximatelyEqual (b3.min, b4.min, e)); assert (approximatelyEqual (b3.max, b4.max, e)); - assert (b21 == b2); + assert (approximatelyEqual (b2.min, b21.min, e)); + assert (approximatelyEqual (b2.max, b21.max, e)); assert (b31 == b3); M[0][3] = 1;