Skip to content
Snippets Groups Projects
Commit 66176355 authored by Freddie Akeroyd's avatar Freddie Akeroyd
Browse files

Add in test for time channels. Refs #85.

parent ae2da160
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ namespace DataHandling ...@@ -93,6 +93,7 @@ namespace DataHandling
std::transform(v.begin(), v.end(), e.begin(), dblSqrt); std::transform(v.begin(), v.end(), e.begin(), dblSqrt);
// Populate the workspace. Loop starts from 1, hence i-1 // Populate the workspace. Loop starts from 1, hence i-1
m_localWorkspace->setData(i-1, v, e); m_localWorkspace->setData(i-1, v, e);
m_localWorkspace->setX(i-1, timeChannelsVec);
// NOTE: Raw numbers go straight into the workspace // NOTE: Raw numbers go straight into the workspace
// - no account taken of bin widths/units etc. // - no account taken of bin widths/units etc.
} }
......
...@@ -69,6 +69,8 @@ public: ...@@ -69,6 +69,8 @@ public:
TS_ASSERT_EQUALS( output2D->dataY(999)[777], 9); TS_ASSERT_EQUALS( output2D->dataY(999)[777], 9);
// Check that the error on that value is correct // Check that the error on that value is correct
TS_ASSERT_EQUALS( output2D->dataE(999)[777], 3); TS_ASSERT_EQUALS( output2D->dataE(999)[777], 3);
// Check that the error on that value is correct
TS_ASSERT_EQUALS( output2D->dataX(999)[777], 554.1875);
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Tests taken from LoadInstrumentTest to check sub-algorithm is running properly // Tests taken from LoadInstrumentTest to check sub-algorithm is running properly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment