Refactor width parsing

This commit is contained in:
Victor Zverovich committed 2022-12-23 18:29:59 -08:00
1 parent 275b4b3417
commit 1dadeb8a33
5 files changed
+142 -64

No files matched your search

+2 -2
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);