Revert "add WithOstreamOperator test into CompileTest"

This commit is contained in:
Alexey Ochapov 2020-08-19 22:18:24 +03:00
parent 6ec1ba5515
commit 67463476b0
No known key found for this signature in database
GPG Key ID: 9DC52E8F031B8DA8

View File

@ -23,7 +23,6 @@
#endif #endif
#include "fmt/compile.h" #include "fmt/compile.h"
#include "fmt/ostream.h"
#include "gmock.h" #include "gmock.h"
#include "gtest-extra.h" #include "gtest-extra.h"
#include "mock-allocator.h" #include "mock-allocator.h"
@ -170,15 +169,4 @@ TEST(CompileTest, TextAndArg) {
EXPECT_EQ(">>>42<<<", fmt::format(FMT_COMPILE(">>>{}<<<"), 42)); EXPECT_EQ(">>>42<<<", fmt::format(FMT_COMPILE(">>>{}<<<"), 42));
EXPECT_EQ("42!", fmt::format(FMT_COMPILE("{}!"), 42)); EXPECT_EQ("42!", fmt::format(FMT_COMPILE("{}!"), 42));
} }
struct ostream_operator_test {};
std::ostream& operator<<(std::ostream& os, ostream_operator_test) {
return os << "42";
}
TEST(CompileTest, WithOstreamOperator) {
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), ostream_operator_test()));
}
#endif #endif