FMT_NO_STREAM_LIBRARIES -> FMT_USE_IOSTREAMS

for consistency with similar macros and removed unnecessary
checks.
This commit is contained in:
vitaut
2015-10-18 08:50:35 -07:00
parent 6049fd9d66
commit b2714f83cc
3 changed files with 20 additions and 24 deletions

View File

@@ -1539,7 +1539,6 @@ TEST(FormatIntTest, FormatDec) {
EXPECT_EQ("42", format_decimal(42ull));
}
#ifndef FMT_NO_STREAM_LIBRARIES
TEST(FormatTest, Print) {
#if FMT_USE_FILE_DESCRIPTORS
EXPECT_WRITE(stdout, fmt::print("Don't {}!", "panic"), "Don't panic!");
@@ -1550,7 +1549,6 @@ TEST(FormatTest, Print) {
fmt::print(os, "Don't {}!", "panic");
EXPECT_EQ("Don't panic!", os.str());
}
#endif
#if FMT_USE_FILE_DESCRIPTORS
TEST(FormatTest, PrintColored) {