|
1 | 1 | /*
|
2 |
| - * Catch v2.13.0 |
3 |
| - * Generated: 2020-07-12 20:07:49.015950 |
| 2 | + * Catch v2.13.1 |
| 3 | + * Generated: 2020-09-07 12:12:38.090364 |
4 | 4 | * ----------------------------------------------------------
|
5 | 5 | * This file has been merged from multiple headers. Please don't edit it directly
|
6 | 6 | * Copyright (c) 2020 Two Blue Cubes Ltd. All rights reserved.
|
|
15 | 15 |
|
16 | 16 | #define CATCH_VERSION_MAJOR 2
|
17 | 17 | #define CATCH_VERSION_MINOR 13
|
18 |
| -#define CATCH_VERSION_PATCH 0 |
| 18 | +#define CATCH_VERSION_PATCH 1 |
19 | 19 |
|
20 | 20 | #ifdef __clang__
|
21 | 21 | # pragma clang system_header
|
@@ -330,7 +330,10 @@ namespace Catch {
|
330 | 330 |
|
331 | 331 | // Check if byte is available and usable
|
332 | 332 | # if __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
|
333 |
| - # define CATCH_INTERNAL_CONFIG_CPP17_BYTE |
| 333 | + # include <cstddef> |
| 334 | + # if __cpp_lib_byte > 0 |
| 335 | + # define CATCH_INTERNAL_CONFIG_CPP17_BYTE |
| 336 | + # endif |
334 | 337 | # endif // __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
|
335 | 338 |
|
336 | 339 | // Check if variant is available and usable
|
@@ -1105,7 +1108,7 @@ struct AutoReg : NonCopyable {
|
1105 | 1108 | int index = 0; \
|
1106 | 1109 | constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, __VA_ARGS__)};\
|
1107 | 1110 | using expander = int[];\
|
1108 |
| - (void)expander{(reg_test(Types{}, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++, 0)... };/* NOLINT */ \ |
| 1111 | + (void)expander{(reg_test(Types{}, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++)... };/* NOLINT */ \ |
1109 | 1112 | }\
|
1110 | 1113 | };\
|
1111 | 1114 | static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
|
@@ -1151,7 +1154,7 @@ struct AutoReg : NonCopyable {
|
1151 | 1154 | constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, INTERNAL_CATCH_REMOVE_PARENS(TmplTypes))};\
|
1152 | 1155 | constexpr char const* types_list[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, INTERNAL_CATCH_REMOVE_PARENS(TypesList))};\
|
1153 | 1156 | constexpr auto num_types = sizeof(types_list) / sizeof(types_list[0]);\
|
1154 |
| - (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFuncName<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index / num_types]) + "<" + std::string(types_list[index % num_types]) + ">", Tags } ), index++, 0)... };/* NOLINT */\ |
| 1157 | + (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFuncName<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index / num_types]) + "<" + std::string(types_list[index % num_types]) + ">", Tags } ), index++)... };/* NOLINT */\ |
1155 | 1158 | } \
|
1156 | 1159 | }; \
|
1157 | 1160 | static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \
|
@@ -1195,7 +1198,7 @@ struct AutoReg : NonCopyable {
|
1195 | 1198 | void reg_tests() { \
|
1196 | 1199 | int index = 0; \
|
1197 | 1200 | using expander = int[]; \
|
1198 |
| - (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFunc<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " + std::string(INTERNAL_CATCH_STRINGIZE(TmplList)) + " - " + std::to_string(index), Tags } ), index++, 0)... };/* NOLINT */\ |
| 1201 | + (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFunc<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " + std::string(INTERNAL_CATCH_STRINGIZE(TmplList)) + " - " + std::to_string(index), Tags } ), index++)... };/* NOLINT */\ |
1199 | 1202 | } \
|
1200 | 1203 | };\
|
1201 | 1204 | static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \
|
@@ -1229,7 +1232,7 @@ struct AutoReg : NonCopyable {
|
1229 | 1232 | int index = 0; \
|
1230 | 1233 | constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, __VA_ARGS__)};\
|
1231 | 1234 | using expander = int[];\
|
1232 |
| - (void)expander{(reg_test(Types{}, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++, 0)... };/* NOLINT */ \ |
| 1235 | + (void)expander{(reg_test(Types{}, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++)... };/* NOLINT */ \ |
1233 | 1236 | }\
|
1234 | 1237 | };\
|
1235 | 1238 | static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
|
@@ -1278,7 +1281,7 @@ struct AutoReg : NonCopyable {
|
1278 | 1281 | constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, INTERNAL_CATCH_REMOVE_PARENS(TmplTypes))};\
|
1279 | 1282 | constexpr char const* types_list[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, INTERNAL_CATCH_REMOVE_PARENS(TypesList))};\
|
1280 | 1283 | constexpr auto num_types = sizeof(types_list) / sizeof(types_list[0]);\
|
1281 |
| - (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index / num_types]) + "<" + std::string(types_list[index % num_types]) + ">", Tags } ), index++, 0)... };/* NOLINT */ \ |
| 1284 | + (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index / num_types]) + "<" + std::string(types_list[index % num_types]) + ">", Tags } ), index++)... };/* NOLINT */ \ |
1282 | 1285 | }\
|
1283 | 1286 | };\
|
1284 | 1287 | static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
|
@@ -1325,7 +1328,7 @@ struct AutoReg : NonCopyable {
|
1325 | 1328 | void reg_tests(){\
|
1326 | 1329 | int index = 0;\
|
1327 | 1330 | using expander = int[];\
|
1328 |
| - (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ Name " - " + std::string(INTERNAL_CATCH_STRINGIZE(TmplList)) + " - " + std::to_string(index), Tags } ), index++, 0)... };/* NOLINT */ \ |
| 1331 | + (void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ Name " - " + std::string(INTERNAL_CATCH_STRINGIZE(TmplList)) + " - " + std::to_string(index), Tags } ), index++)... };/* NOLINT */ \ |
1329 | 1332 | }\
|
1330 | 1333 | };\
|
1331 | 1334 | static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
|
@@ -1829,8 +1832,8 @@ namespace Catch {
|
1829 | 1832 | #endif
|
1830 | 1833 |
|
1831 | 1834 | namespace Detail {
|
1832 |
| - template<typename InputIterator> |
1833 |
| - std::string rangeToString(InputIterator first, InputIterator last) { |
| 1835 | + template<typename InputIterator, typename Sentinel = InputIterator> |
| 1836 | + std::string rangeToString(InputIterator first, Sentinel last) { |
1834 | 1837 | ReusableStringStream rss;
|
1835 | 1838 | rss << "{ ";
|
1836 | 1839 | if (first != last) {
|
@@ -15238,7 +15241,7 @@ namespace Catch {
|
15238 | 15241 | }
|
15239 | 15242 |
|
15240 | 15243 | Version const& libraryVersion() {
|
15241 |
| - static Version version( 2, 13, 0, "", 0 ); |
| 15244 | + static Version version( 2, 13, 1, "", 0 ); |
15242 | 15245 | return version;
|
15243 | 15246 | }
|
15244 | 15247 |
|
|
0 commit comments