Skip to content

Commit

Permalink
Use pop_back function to remove the last candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Nov 22, 2024
1 parent ee21978 commit 97ddeae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cpu/test_kalman_fitter_hole_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ TEST_P(KalmanFittingHoleCountTests, Run) {
cands.erase(cands.begin() + 2);
cands.erase(cands.begin() + 2);
cands.erase(cands.begin() + 7);
cands.erase(cands.end() - 1);
cands.erase(cands.end() - 1);
cands.erase(cands.end() - 1);
cands.pop_back();
cands.pop_back();
cands.pop_back();

// A sanity check on the number of candidiates
ASSERT_EQ(cands.size(), n_planes - 8u);
Expand Down

0 comments on commit 97ddeae

Please sign in to comment.