From ae55ccfc40ceda88a91cd79ec6ae688411dacbf2 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 11 Nov 2024 23:56:33 +0100 Subject: [PATCH] Update test to consider change of default for deque --- tests/check-deque.cpp | 1 + tests/check-generic.hpp | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/check-deque.cpp b/tests/check-deque.cpp index b99920d2..f30b5c29 100644 --- a/tests/check-deque.cpp +++ b/tests/check-deque.cpp @@ -56,4 +56,5 @@ void cmp_cont(deque_float_t a, std::deque b) #define DEFAULT_NUMBER 1000000 #define HAVE_PUSH_FRONT #define HAVE_POP_FRONT +#define HAVE_POP_BACK #include "check-generic.hpp" diff --git a/tests/check-generic.hpp b/tests/check-generic.hpp index 383d2c73..85264219 100644 --- a/tests/check-generic.hpp +++ b/tests/check-generic.hpp @@ -134,7 +134,15 @@ void test(int select_test, int index, break; #endif -#if M_TEST_METHOD_P(POP, CONT_OPL) +#ifdef HAVE_POP_BACK + case 2: + if (!c1.empty()) { + M_C(CONT_NAME, _pop_back)(&b0, c0); + b1 = c1.back(); + c1.pop_back(); + } + break; +#elif M_TEST_METHOD_P(POP, CONT_OPL) case 2: if (!c1.empty()) { M_CALL_POP(CONT_OPL, &b0, c0);