mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 19:54:46 +02:00
Make format-test not depend on color.h
This commit is contained in:
@@ -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) {
|
|||||||
|
|
||||||
#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;
|
||||||
|
Reference in New Issue
Block a user