|
10 | 10 | #define TEST_STD_UTILITIES_FORMAT_FORMAT_RANGE_FORMAT_RANGE_FMTMAP_FORMAT_FUNCTIONS_TESTS_H
|
11 | 11 |
|
12 | 12 | #include <algorithm>
|
13 |
| -#include <deque> |
14 |
| -#include <flat_map> |
15 | 13 | #include <format>
|
16 | 14 | #include <map>
|
17 | 15 | #include <unordered_map>
|
@@ -243,7 +241,10 @@ void test_char_to_wchar(TestFunction check, ExceptionTest check_exception) {
|
243 | 241 | // Bool
|
244 | 242 | //
|
245 | 243 | template <class CharT, class TestFunction, class ExceptionTest>
|
246 |
| -void test_bool(TestFunction check, ExceptionTest check_exception, auto&& input) { |
| 244 | +void test_bool(TestFunction check, ExceptionTest check_exception) { |
| 245 | + // duplicates are stored in order of insertion |
| 246 | + std::multimap<bool, int> input{{true, 42}, {false, 0}, {true, 1}}; |
| 247 | + |
247 | 248 | check(SV("{false: 0, true: 42, true: 1}"), SV("{}"), input);
|
248 | 249 | check(SV("{false: 0, true: 42, true: 1}^42"), SV("{}^42"), input);
|
249 | 250 | check(SV("{false: 0, true: 42, true: 1}^42"), SV("{:}^42"), input);
|
@@ -338,17 +339,6 @@ void test_bool(TestFunction check, ExceptionTest check_exception, auto&& input)
|
338 | 339 | "The argument index value is too large for the number of arguments supplied", SV("{:^^{}:#>{}}"), input, 41);
|
339 | 340 | }
|
340 | 341 |
|
341 |
| -template <class CharT, class TestFunction, class ExceptionTest> |
342 |
| -void test_bool(TestFunction check, ExceptionTest check_exception) { |
343 |
| - // duplicates are stored in order of insertion |
344 |
| - test_bool<CharT>(check, check_exception, std::multimap<bool, int>{{true, 42}, {false, 0}, {true, 1}}); |
345 |
| -#if TEST_STD_VER >= 23 |
346 |
| - test_bool<CharT>(check, |
347 |
| - check_exception, |
348 |
| - std::flat_multimap<bool, int, std::less<bool>, std::deque<bool>>{{true, 42}, {false, 0}, {true, 1}}); |
349 |
| -#endif |
350 |
| -} |
351 |
| - |
352 | 342 | //
|
353 | 343 | // Integral
|
354 | 344 | //
|
@@ -452,9 +442,6 @@ void test_int(TestFunction check, ExceptionTest check_exception, auto&& input) {
|
452 | 442 | template <class CharT, class TestFunction, class ExceptionTest>
|
453 | 443 | void test_int(TestFunction check, ExceptionTest check_exception) {
|
454 | 444 | test_int<CharT>(check, check_exception, std::map<int, int>{{1, -1}, {42, -42}, {-42, 42}});
|
455 |
| -#if TEST_STD_VER >= 23 |
456 |
| - test_int<CharT>(check, check_exception, std::flat_map<int, int>{{1, -1}, {42, -42}, {-42, 42}}); |
457 |
| -#endif |
458 | 445 | }
|
459 | 446 |
|
460 | 447 | //
|
|
0 commit comments