exclude FMT_STRING in template test if relaxed constexpr isn't supported.
This commit is contained in:
parent
bbbbef8db0
commit
3c023d6e1e
@ -2475,8 +2475,6 @@ TEST(FormatTest, VFormatTo) {
|
|||||||
EXPECT_EQ(L"42", w);
|
EXPECT_EQ(L"42", w);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // FMT_USE_CONSTEXPR
|
|
||||||
|
|
||||||
template <typename T> static std::string FmtToString(const T& t) {
|
template <typename T> static std::string FmtToString(const T& t) {
|
||||||
return fmt::format(FMT_STRING("{}"), t);
|
return fmt::format(FMT_STRING("{}"), t);
|
||||||
}
|
}
|
||||||
@ -2486,6 +2484,8 @@ TEST(FormatTest, FmtStringInTemplate) {
|
|||||||
EXPECT_EQ(FmtToString(0), "0");
|
EXPECT_EQ(FmtToString(0), "0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // FMT_USE_CONSTEXPR
|
||||||
|
|
||||||
TEST(FormatTest, ConstructU8StringViewFromCString) {
|
TEST(FormatTest, ConstructU8StringViewFromCString) {
|
||||||
fmt::u8string_view s("ab");
|
fmt::u8string_view s("ab");
|
||||||
EXPECT_EQ(s.size(), 2u);
|
EXPECT_EQ(s.size(), 2u);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user