|
22 | 22 | #include <iterator> // std::back_inserter
|
23 | 23 | #include <list> // std::list
|
24 | 24 | #include <mutex> // std::mutex
|
| 25 | +#include <string> // std::string |
25 | 26 | #include <thread> // std::thread
|
26 | 27 | #include <type_traits> // std::is_default_constructible
|
27 | 28 |
|
@@ -2222,16 +2223,21 @@ template <typename Char, typename... T> void check_enabled_formatters() {
|
2222 | 2223 | }
|
2223 | 2224 |
|
2224 | 2225 | TEST(format_test, test_formatters_enabled) {
|
| 2226 | + using custom_string = |
| 2227 | + std::basic_string<char, std::char_traits<char>, mock_allocator<char>>; |
| 2228 | + using custom_wstring = std::basic_string<wchar_t, std::char_traits<wchar_t>, |
| 2229 | + mock_allocator<wchar_t>>; |
| 2230 | + |
2225 | 2231 | check_enabled_formatters<char, bool, char, signed char, unsigned char, short,
|
2226 | 2232 | unsigned short, int, unsigned, long, unsigned long,
|
2227 | 2233 | long long, unsigned long long, float, double,
|
2228 | 2234 | long double, void*, const void*, char*, const char*,
|
2229 |
| - std::string, std::nullptr_t>(); |
2230 |
| - check_enabled_formatters<wchar_t, bool, wchar_t, signed char, unsigned char, |
2231 |
| - short, unsigned short, int, unsigned, long, |
2232 |
| - unsigned long, long long, unsigned long long, float, |
2233 |
| - double, long double, void*, const void*, wchar_t*, |
2234 |
| - const wchar_t*, std::wstring, std::nullptr_t>(); |
| 2235 | + std::string, custom_string, std::nullptr_t>(); |
| 2236 | + check_enabled_formatters< |
| 2237 | + wchar_t, bool, wchar_t, signed char, unsigned char, short, unsigned short, |
| 2238 | + int, unsigned, long, unsigned long, long long, unsigned long long, float, |
| 2239 | + double, long double, void*, const void*, wchar_t*, const wchar_t*, |
| 2240 | + std::wstring, custom_wstring, std::nullptr_t>(); |
2235 | 2241 | }
|
2236 | 2242 |
|
2237 | 2243 | TEST(format_int_test, data) {
|
|
0 commit comments