mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-28 20:51:42 +01:00
Refactor width parsing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user