Update compile-test.cc
This commit is contained in:
parent
fbeee38e30
commit
94c837f5f4
@ -331,7 +331,7 @@ consteval auto test_format(auto format, const Args&... args) {
|
|||||||
static_assert(fmt::format(FMT_COMPILE(str), __VA_ARGS__) == expected); \
|
static_assert(fmt::format(FMT_COMPILE(str), __VA_ARGS__) == expected); \
|
||||||
} while (false)
|
} while (false)
|
||||||
# else
|
# else
|
||||||
# define TEST_FORMAT(expected, len, str, ...) \
|
# define TEST_FORMAT(expected, str, ...) \
|
||||||
EXPECT_EQ(expected, \
|
EXPECT_EQ(expected, \
|
||||||
test_format<sizeof(expected)>(FMT_COMPILE(str), __VA_ARGS__))
|
test_format<sizeof(expected)>(FMT_COMPILE(str), __VA_ARGS__))
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user