Commit 68555fdb authored by Victor Zverovich's avatar Victor Zverovich

Make format-test not depend on color.h

parent 63e0c354
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
// Check if fmt/format.h compiles with the X11 index macro defined. // Check if fmt/format.h compiles with the X11 index macro defined.
#define index(x, y) no nice things #define index(x, y) no nice things
#include "fmt/color.h"
#include "fmt/format.h" #include "fmt/format.h"
#undef index #undef index
...@@ -2446,12 +2445,6 @@ TEST(FormatTest, FmtStringInTemplate) { ...@@ -2446,12 +2445,6 @@ TEST(FormatTest, FmtStringInTemplate) {
#endif // FMT_USE_CONSTEXPR #endif // FMT_USE_CONSTEXPR
TEST(FormatTest, EmphasisNonHeaderOnly) {
// Ensure this compiles even if FMT_HEADER_ONLY is not defined.
EXPECT_EQ(fmt::format(fmt::emphasis::bold, "bold error"),
"\x1b[1mbold error\x1b[0m");
}
TEST(FormatTest, CharTraitsIsNotAmbiguous) { TEST(FormatTest, CharTraitsIsNotAmbiguous) {
// Test that we don't inject detail names into the std namespace. // Test that we don't inject detail names into the std namespace.
using namespace std; using namespace std;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment