Skip to content
Snippets Groups Projects
Commit 1755937b authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Make unit test to remove all genrated workspaces. Refs #9020.

parent 84373537
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,7 @@ public: ...@@ -60,6 +60,7 @@ public:
TS_ASSERT_DELTA( peaklist->Double(0,4), 0.04, 0.01 ); TS_ASSERT_DELTA( peaklist->Double(0,4), 0.04, 0.01 );
TS_ASSERT_DELTA( peaklist->Double(0,5), 0.0, 0.01 ); TS_ASSERT_DELTA( peaklist->Double(0,5), 0.0, 0.01 );
// Clean
AnalysisDataService::Instance().remove("Signal"); AnalysisDataService::Instance().remove("Signal");
return; return;
...@@ -146,6 +147,10 @@ public: ...@@ -146,6 +147,10 @@ public:
int ipeakmax = outws->Int(0, 2); int ipeakmax = outws->Int(0, 2);
TS_ASSERT(ipeakmin >= ipeakmax); TS_ASSERT(ipeakmin >= ipeakmax);
// Clean
AnalysisDataService::Instance().remove("Signal3");
AnalysisDataService::Instance().remove("Test2Workspace");
return; return;
} }
...@@ -190,6 +195,10 @@ public: ...@@ -190,6 +195,10 @@ public:
TS_ASSERT_DELTA( outws->Double(0,4), 0.04, 0.01 ); TS_ASSERT_DELTA( outws->Double(0,4), 0.04, 0.01 );
TS_ASSERT_DELTA( outws->Double(0,5), 0.0, 0.01 ); TS_ASSERT_DELTA( outws->Double(0,5), 0.0, 0.01 );
// Clean
AnalysisDataService::Instance().remove("Signal2");
AnalysisDataService::Instance().remove("Test2Workspace");
return; return;
} }
......
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