Skip to content

Commit

Permalink
Update system test to check X values
Browse files Browse the repository at this point in the history
Refs #11470
  • Loading branch information
DanNixon committed Apr 2, 2015
1 parent ffe089a commit f851e5e
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -118,6 +118,8 @@ def test_sumspectra_set_to_true_gives_single_spectra_summed_over_all_inputs(self

# Verify
self.assertEquals(1, evs_raw.getNumberHistograms())
self.assertAlmostEqual(5.0, evs_raw.readX(0)[0], places=DIFF_PLACES)
self.assertAlmostEqual(599.5, evs_raw.readX(0)[-1], places=DIFF_PLACES)
self.assertAlmostEqual(-1.5288171762918328, evs_raw.readY(0)[0], places=DIFF_PLACES)
self.assertAlmostEqual(-0.079412793053402098, evs_raw.readY(0)[-1], places=DIFF_PLACES)
self.assertAlmostEqual(0.52109203357613976, evs_raw.readE(0)[0], places=DIFF_PLACES)
Expand All @@ -130,6 +132,10 @@ def test_sumspectra_with_multiple_groups_gives_number_output_spectra_as_input_gr

# Verify
self.assertEquals(2, evs_raw.getNumberHistograms())
self.assertAlmostEqual(5.0, evs_raw.readX(0)[0], places=DIFF_PLACES)
self.assertAlmostEqual(5.0, evs_raw.readX(1)[0], places=DIFF_PLACES)
self.assertAlmostEqual(599.5, evs_raw.readX(0)[-1], places=DIFF_PLACES)
self.assertAlmostEqual(599.5, evs_raw.readX(1)[-1], places=DIFF_PLACES)
self.assertAlmostEqual(-0.713877795283, evs_raw.readY(0)[0], places=DIFF_PLACES)
self.assertAlmostEqual(-3.00125465604, evs_raw.readY(1)[0], places=DIFF_PLACES)
self.assertAlmostEqual(0.6219299465, evs_raw.readE(0)[0], places=DIFF_PLACES)
Expand Down

0 comments on commit f851e5e

Please sign in to comment.