From 67463476b00dcdcefe987fda02bfd612f579fd40 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Wed, 19 Aug 2020 22:18:24 +0300 Subject: [PATCH] Revert "add WithOstreamOperator test into CompileTest" --- test/compile-test.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index 7e74a7e1..fd98c772 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -23,7 +23,6 @@ #endif #include "fmt/compile.h" -#include "fmt/ostream.h" #include "gmock.h" #include "gtest-extra.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)); } - -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