From 97ddeae366ecb4c23e55bbbe531b0be9fddc0fcb Mon Sep 17 00:00:00 2001 From: Beomki Yeo Date: Fri, 22 Nov 2024 07:12:21 -0800 Subject: [PATCH] Use pop_back function to remove the last candidates --- tests/cpu/test_kalman_fitter_hole_count.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cpu/test_kalman_fitter_hole_count.cpp b/tests/cpu/test_kalman_fitter_hole_count.cpp index e083d92a3..55557f783 100644 --- a/tests/cpu/test_kalman_fitter_hole_count.cpp +++ b/tests/cpu/test_kalman_fitter_hole_count.cpp @@ -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);