diff --git a/Code/Mantid/Framework/Algorithms/test/Q1D2Test.h b/Code/Mantid/Framework/Algorithms/test/Q1D2Test.h index 0cf1187474b496fecd684eaed00a2db365aea451..d9659d35f68806e8d6453950082860f771e1f30e 100644 --- a/Code/Mantid/Framework/Algorithms/test/Q1D2Test.h +++ b/Code/Mantid/Framework/Algorithms/test/Q1D2Test.h @@ -250,7 +250,7 @@ public: TS_ASSERT( boost::math::isnan(gravity->readY(0)[78]) ) TS_ASSERT_DELTA( gravity->readE(0).front(), 329383, 1 ) - TS_ASSERT_DELTA( gravity->readE(0)[10], 489710, 1 ) + TS_ASSERT_DELTA( gravity->readE(0)[10], 489708, 1 ) //489710 TS_ASSERT( boost::math::isnan(gravity->readE(0)[77]) ) Mantid::API::AnalysisDataService::Instance().remove(outputWS); @@ -292,8 +292,8 @@ public: TS_ASSERT_DELTA( result->readY(0)[12], 503242.79, 0.1) TS_ASSERT( boost::math::isnan(result->readY(0).back()) ) - TS_ASSERT_DELTA( result->readE(0)[2], 404981, 1 ) - TS_ASSERT_DELTA( result->readE(0)[10], 489710, 100 ) + TS_ASSERT_DELTA( result->readE(0)[2], 404980, 1 ) + TS_ASSERT_DELTA( result->readE(0)[10], 489708, 100 ) TS_ASSERT( boost::math::isnan(result->readE(0)[7]) ) } @@ -331,9 +331,10 @@ public: for ( size_t i = 0; i < nocuts->readY(0).size(); ++i ) { TS_ASSERT_EQUALS( nocuts->readX(0)[i], noGrav->readX(0)[i] ) - if ( ! boost::math::isnan(nocuts->readY(0)[i]) ) + if ( ! boost::math::isnan(nocuts->readY(0)[i]) && !boost::math::isnan(nocuts->readE(0)[i]) ) { TS_ASSERT_EQUALS( nocuts->readY(0)[i], noGrav->readY(0)[i] ) + TS_ASSERT_EQUALS( nocuts->readE(0)[i], noGrav->readE(0)[i] ) } }