diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-02-14 15:33:01 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-02-27 23:42:02 -0500 |
commit | c780b434f538f72dab32a120a7950c1480a95d49 (patch) | |
tree | ac62ddbb3af1dc4d677b2211fa2eae541198d6e4 /src/mongo/db/pipeline/document_value_test.cpp | |
parent | 9dfb28da2fbf9b1ba6b17ad873dde0db1863694f (diff) | |
download | mongo-c780b434f538f72dab32a120a7950c1480a95d49.tar.gz |
SERVER-27553 Remove print macro
Diffstat (limited to 'src/mongo/db/pipeline/document_value_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_value_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document_value_test.cpp b/src/mongo/db/pipeline/document_value_test.cpp index bf6d3cca81d..92fd2f64067 100644 --- a/src/mongo/db/pipeline/document_value_test.cpp +++ b/src/mongo/db/pipeline/document_value_test.cpp @@ -39,11 +39,9 @@ #include "mongo/db/pipeline/value.h" #include "mongo/db/pipeline/value_comparator.h" #include "mongo/dbtests/dbtests.h" -#include "mongo/util/print.h" namespace DocumentTests { -using std::endl; using std::numeric_limits; using std::string; using std::vector; @@ -178,7 +176,7 @@ public: // Remove the second field. md.setField("b", Value()); - PRINT(md.peek().toString()); + log() << md.peek().toString(); ASSERT_EQUALS(2U, md.peek().size()); ASSERT(md.peek()["b"].missing()); ASSERT_EQUALS("a", getNthField(md.peek(), 0).first.toString()); @@ -1601,7 +1599,8 @@ private: assertComparison(expectedResult, fromBson(a), fromBson(b)); } void assertComparison(int expectedResult, const Value& a, const Value& b) { - mongo::unittest::log() << "testing " << a.toString() << " and " << b.toString() << endl; + mongo::unittest::log() << "testing " << a.toString() << " and " << b.toString(); + // reflexivity ASSERT_EQUALS(0, cmp(a, a)); ASSERT_EQUALS(0, cmp(b, b)); |