Skip to content

Commit

Permalink
Refs #10301 Fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Oct 15, 2014
1 parent 7127f5a commit 4235aed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Expand Up @@ -77,7 +77,7 @@ class ReflLoadedMainViewPresenterTest : public CxxTest::TestSuite
ITableWorkspace_sptr ws = createWorkspace();

TableRow row = ws->appendRow();
row << "13460" << "0.7" << "13463" << "0.01" << "0.06" << "0.04" << "2" << "1" << "";
row << "13460" << "0.7" << "13463" << "0.01" << "0.06" << "0.04" << 2.0 << 1 << "";

return ws;
}
Expand Down Expand Up @@ -487,9 +487,9 @@ class ReflLoadedMainViewPresenterTest : public CxxTest::TestSuite
{
auto ws = createWorkspace("TestWorkspace");
TableRow row = ws->appendRow();
row << "dataA" << "0.7" << "13463,13464" << "0.01" << "0.06" << "0.04" << "1" << 1;
row << "dataA" << "0.7" << "13463,13464" << "0.01" << "0.06" << "0.04" << 1.0 << 1;
row = ws->appendRow();
row << "dataB" << "2.3" << "13463,13464" << "0.035" << "0.3" << "0.04" << "1" << 1;
row << "dataB" << "2.3" << "13463,13464" << "0.035" << "0.3" << "0.04" << 1.0 << 1;

loadWorkspace("INTER13460", "dataA");
loadWorkspace("INTER13462", "dataB");
Expand Down Expand Up @@ -547,9 +547,9 @@ class ReflLoadedMainViewPresenterTest : public CxxTest::TestSuite
auto ws = createWorkspace("TestWorkspace");
//Autofill everything we can
TableRow row = ws->appendRow();
row << "13460" << "" << "13463,13464" << "" << "" << "" << "1" << 1;
row << "13460" << "" << "13463,13464" << "" << "" << "" << 1.0 << 1;
row = ws->appendRow();
row << "13462" << "" << "13463,13464" << "" << "" << "" << "1" << 1;
row << "13462" << "" << "13463,13464" << "" << "" << "" << 1.0 << 1;

MockView mockView;
ReflLoadedMainViewPresenter presenter(ws,&mockView);
Expand Down
Expand Up @@ -46,13 +46,13 @@ class MockView : public ReflMainView
void addDataForTest()
{
TableRow row = m_model->appendRow();
row << "13460" << "0.7" << "13463,13464" << "0.01" << "0.06" << "0.04" << "1" << 3 << "";
row << "13460" << "0.7" << "13463,13464" << "0.01" << "0.06" << "0.04" << 1.0 << 3 << "";
row = m_model->appendRow();
row << "13462" << "2.3" << "13463,13464" << "0.035" << "0.3" << "0.04" << "1" << 3 << "";
row << "13462" << "2.3" << "13463,13464" << "0.035" << "0.3" << "0.04" << 1.0 << 3 << "";
row = m_model->appendRow();
row << "13469" << "0.7" << "13463,13464" << "0.01" << "0.06" << "0.04" << "1" << 1 << "";
row << "13469" << "0.7" << "13463,13464" << "0.01" << "0.06" << "0.04" << 1.0 << 1 << "";
row = m_model->appendRow();
row << "13470" << "2.3" << "13463,13464" << "0.035" << "0.3" << "0.04" << "1" << 1 << "";
row << "13470" << "2.3" << "13463,13464" << "0.035" << "0.3" << "0.04" << 1.0 << 1 << "";
m_model->removeRow(0);
}
private:
Expand Down

0 comments on commit 4235aed

Please sign in to comment.