From fe70e69e5718be81cb84cd630fca47b10f788258 Mon Sep 17 00:00:00 2001
From: Owen Arnold <owen.arnold@stfc.ac.uk>
Date: Mon, 23 Jul 2012 09:31:15 +0100
Subject: [PATCH] refs #5633. Fix test precision issue on mac

---
 .../Framework/CurveFitting/test/ProductLinearExpTest.h    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Code/Mantid/Framework/CurveFitting/test/ProductLinearExpTest.h b/Code/Mantid/Framework/CurveFitting/test/ProductLinearExpTest.h
index 1e9662b50ca..855f579a713 100644
--- a/Code/Mantid/Framework/CurveFitting/test/ProductLinearExpTest.h
+++ b/Code/Mantid/Framework/CurveFitting/test/ProductLinearExpTest.h
@@ -84,10 +84,10 @@ private:
       double x = xValues[i];
       // Mimic workings of ProductLinearExp function to product comparison output.
       double expected = ((A1 * x) + A0)* Height * std::exp(-x/Lifetime); 
-      TS_ASSERT_EQUALS(expected, valuesLinExpDecay[i]);
+      TS_ASSERT_DELTA(expected, valuesLinExpDecay[i], 0.0001);
 
       // As a complete check, verify that the output is also the same for the Linear algorithm.
-      TS_ASSERT_EQUALS(valuesLinear[i], valuesLinExpDecay[i]);
+      TS_ASSERT_DELTA(valuesLinear[i], valuesLinExpDecay[i], 0.0001);
     }
   }
 
@@ -162,9 +162,9 @@ public:
       double x = xValues[i];
       // Mimic workings of ProductLinearExp function to product comparison output.
       double expected = ((A1 * x) + A0)* Height * std::exp(-x/Lifetime); 
-      TS_ASSERT_EQUALS(expected, valuesLinExpDecay[i]);
+      TS_ASSERT_DELTA(expected, valuesLinExpDecay[i], 0.0001);
       // As a complete check, verify that the output is also the same for the ExpDecay algorithm.
-      TS_ASSERT_EQUALS(valuesExpDecay[i], valuesLinExpDecay[i]);
+      TS_ASSERT_DELTA(valuesExpDecay[i], valuesLinExpDecay[i], 0.0001);
     }
   }
 
-- 
GitLab