From 5ec596383a168ee53bbefda855b128ecd4f68528 Mon Sep 17 00:00:00 2001 From: Roman Tolchenov Date: Fri, 6 Mar 2015 11:11:51 +0000 Subject: [PATCH] Re #11131. Fixing the unit test. --- .../CurveFitting/test/PeakParametersNumericTest.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Code/Mantid/Framework/CurveFitting/test/PeakParametersNumericTest.h b/Code/Mantid/Framework/CurveFitting/test/PeakParametersNumericTest.h index ed9d296f087e..db7adc54c83e 100644 --- a/Code/Mantid/Framework/CurveFitting/test/PeakParametersNumericTest.h +++ b/Code/Mantid/Framework/CurveFitting/test/PeakParametersNumericTest.h @@ -156,23 +156,30 @@ class PeakParametersNumericTest : public CxxTest::TestSuite { void test_GaussLinearW() { - do_test_Gauss(GaussLinearW(),1e-7); + GaussLinearW fun; + do_test_Gauss(fun,1e-7); } void test_GaussInverseW() { - do_test_Gauss(GaussInverseW(),1e-4); + GaussInverseW fun; + do_test_Gauss(fun,1e-4); } void test_GaussSquaredW() { - do_test_Gauss(GaussSquaredW(),1e-7); + GaussSquaredW fun; + do_test_Gauss(fun,1e-7); } void test_Back2Back() { BackToBackExponential fun; fun.initialize(); + fun.setParameter("I",1.0); + fun.setParameter("A",10.0); + fun.setParameter("B",5.05); + fun.setParameter("S",0.1); double tol = 1e-4; TS_ASSERT_DELTA(fun.centre(), 0.0335, tol); TS_ASSERT_DELTA(fun.height(), 2.0953, tol);