Skip to content

Commit

Permalink
Refs #5708 added imaginary part to testExec
Browse files Browse the repository at this point in the history
modified: ExtractFFTSpectrumTest.h
  • Loading branch information
jmborr committed Jan 15, 2013
1 parent 3e91779 commit 37e9bbc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ class ExtractFFTSpectrumTest : public CxxTest::TestSuite
ExtractFFTSpectrum alg;
alg.initialize();

TS_ASSERT_THROWS(alg.execute(), std::runtime_error);
TS_ASSERT_THROWS(alg.execute(), std::runtime_error); // check it does output error
TS_ASSERT(!alg.isExecuted());

TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("InputWorkspace", "alg_irs_r"));
TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("InputImagWorkspace", "alg_irs_r")); // use same spectra for the imaginary part (Re==Im)
TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace", "alg_irs_t"));
TS_ASSERT_THROWS_NOTHING(alg.execute());
TS_ASSERT(alg.isExecuted());
Expand Down

0 comments on commit 37e9bbc

Please sign in to comment.