Issue 205: Make iostream support optional.

This commit is contained in:
Richard Maxwell
2015-10-16 08:04:53 +13:00
parent 221eeda912
commit 2cca51c744
3 changed files with 15 additions and 1 deletions
+2
View File
@@ -1539,6 +1539,7 @@ 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!");
@@ -1549,6 +1550,7 @@ 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) {