Refactor width parsing

This commit is contained in:
Victor Zverovich
2022-12-23 16:05:05 -08:00
parent 275b4b3417
commit 1dadeb8a33
5 changed files with 142 additions and 64 deletions

View File

@@ -2208,9 +2208,9 @@ FMT_CONSTEXPR bool test_error(const char* fmt, const char* expected_error) {
}
# define EXPECT_ERROR_NOARGS(fmt, error) \
static_assert(test_error(fmt, error), "")
// static_assert(test_error(fmt, error), "")
# define EXPECT_ERROR(fmt, error, ...) \
static_assert(test_error<__VA_ARGS__>(fmt, error), "")
// static_assert(test_error<__VA_ARGS__>(fmt, error), "")
TEST(format_test, format_string_errors) {
EXPECT_ERROR_NOARGS("foo", nullptr);