Skip to content

Commit

Permalink
Fix unit test. Refs #5306.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Aug 10, 2012
1 parent 62f037a commit ab83cca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ProcessBackgroundTest : public CxxTest::TestSuite
/*
* Test option delete region
*/
void Ptest_DeleteRegion()
void test_DeleteRegion()
{
// 1. Create Workspace2D
DataObjects::Workspace2D_sptr inpws
Expand Down Expand Up @@ -67,7 +67,7 @@ class ProcessBackgroundTest : public CxxTest::TestSuite
/*
* Test option "Add Region"
*/
void Ptest_AddRegion()
void test_AddRegion()
{
// 1. Create Workspace2D
DataObjects::Workspace2D_sptr inpws
Expand Down Expand Up @@ -168,6 +168,7 @@ class ProcessBackgroundTest : public CxxTest::TestSuite
(API::AnalysisDataService::Instance().retrieve("SelectedBackgroundPoints"));
TS_ASSERT(bkgdws);

/*
std::ofstream ofile;
ofile.open("selectedbackground.dat");
for (size_t i = 0; i < bkgdws->readX(0).size(); ++i)
Expand All @@ -178,8 +179,8 @@ class ProcessBackgroundTest : public CxxTest::TestSuite
ofile << x << "\t" << y << "\t" << e << std::endl;
}
ofile.close();
*/

TS_ASSERT_EQUALS(1, 1021);
return;
}

Expand Down

0 comments on commit ab83cca

Please sign in to comment.