Skip to content

Commit

Permalink
correct typos in test
Browse files Browse the repository at this point in the history
Two lines were copy-paste, and therefore didn't test anything extra.
  • Loading branch information
KrisThielemans committed Dec 31, 2023
1 parent 52808c3 commit 64962b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/test_time_of_flight.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ void TOF_Tests::test_CListEventROOT()
if (det_pos_swapped.timing_pos() == det_pos.timing_pos())
{
check_if_equal(det_pos_swapped.pos1(), det_pos.pos1(), "CListEventROOT: get_detection_position with swapped detectors: equal timing_pos, but different pos1");
check_if_equal(det_pos_swapped.pos1(), det_pos.pos1(), "CListEventROOT: get_detection_position with swapped detectors: equal timing_pos, but different pos1");
check_if_equal(det_pos_swapped.pos2(), det_pos.pos2(), "CListEventROOT: get_detection_position with swapped detectors: equal timing_pos, but different pos2");
}
else if (det_pos_swapped.timing_pos() == -det_pos.timing_pos())
{
check_if_equal(det_pos_swapped.pos2(), det_pos.pos1(), "CListEventROOT: get_detection_position with swapped detectors: equal timing_pos, but different pos1");
check_if_equal(det_pos_swapped.pos2(), det_pos.pos1(), "CListEventROOT: get_detection_position with swapped detectors: equal timing_pos, but different pos1");
check_if_equal(det_pos_swapped.pos2(), det_pos.pos1(), "CListEventROOT: get_detection_position with swapped detectors: opposite timing_pos, but different pos1/2");
check_if_equal(det_pos_swapped.pos1(), det_pos.pos2(), "CListEventROOT: get_detection_position with swapped detectors: opposite timing_pos, but different pos1/2");
}
else
{
Expand Down

0 comments on commit 64962b6

Please sign in to comment.