Skip to content

Commit

Permalink
Refs #11704 Update broken tests
Browse files Browse the repository at this point in the history
Previously, the minPositive value would get stuck at 0. It now goes to
the actual minimum positive value, so the tests needs to reflect this
when data is clamped to minPositive.
  • Loading branch information
Harry Jeffery committed May 14, 2015
1 parent b245e9a commit a291fa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidQt/API/test/QwtWorkspaceBinDataTest.h
Expand Up @@ -72,7 +72,7 @@ class QwtWorkspaceBinDataTest : public CxxTest::TestSuite
QwtWorkspaceBinData data(*ws, 2, true);
TS_ASSERT_DELTA( data.y(1), 5.0, 1e-6);
TS_ASSERT_DELTA( data.e(1), 7.0, 1e-6);
TS_ASSERT_DELTA( data.y(2), 0.0, 1e-6);
TS_ASSERT_DELTA( data.y(2), 4.0, 1e-6);
// Errors should also be zero-ed out.
TS_ASSERT_DELTA( data.e(2), 0.0, 1e-6);
}
Expand Down
Expand Up @@ -75,7 +75,7 @@ class QwtWorkspaceSpectrumDataTest : public CxxTest::TestSuite
QwtWorkspaceSpectrumData data(*ws, 0, true, false);
TS_ASSERT_DELTA( data.y(1), 2.0, 1e-6);
TS_ASSERT_DELTA( data.e(1), 3.0, 1e-6);
TS_ASSERT_DELTA( data.y(2), 0.0, 1e-6);
TS_ASSERT_DELTA( data.y(2), 2.0, 1e-6);
// Errors should also be zero-ed out.
TS_ASSERT_DELTA( data.e(2), 0.0, 1e-6);
}
Expand Down

0 comments on commit a291fa0

Please sign in to comment.