Skip to content

Commit

Permalink
Update test to consider change of default for deque
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Nov 11, 2024
1 parent 5bf644c commit ae55ccf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/check-deque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ void cmp_cont(deque_float_t a, std::deque<float> b)
#define DEFAULT_NUMBER 1000000
#define HAVE_PUSH_FRONT
#define HAVE_POP_FRONT
#define HAVE_POP_BACK
#include "check-generic.hpp"
10 changes: 9 additions & 1 deletion tests/check-generic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae55ccf

Please sign in to comment.