Skip to content

Commit

Permalink
Re #6036. Added tests for getEventXMin/Max.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jan 24, 2013
1 parent 65c5d3f commit 347419c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Code/Mantid/Framework/DataObjects/test/EventWorkspaceTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,13 @@ class EventWorkspaceTest : public CxxTest::TestSuite
{
do_test_dirtyFlag(true);
}

void test_getEventXMinMax()
{
EventWorkspace_sptr wksp = createEventWorkspace(1, 1, true);
TS_ASSERT_DELTA(wksp->getEventXMin(), 500, .01);
TS_ASSERT_DELTA(wksp->getEventXMax(), 1023500, .01);
}
};

#endif /* EVENTWORKSPACETEST_H_ */

0 comments on commit 347419c

Please sign in to comment.