From: Jelte Jansen Date: Thu, 19 Jul 2012 09:56:54 +0000 (+0200) Subject: [2089] remove unnecessary << operators in unit test X-Git-Tag: trac2351_base~157^2~27^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0ab37d167a79656c569772accaf4d8b50abec1f;p=thirdparty%2Fkea.git [2089] remove unnecessary << operators in unit test --- diff --git a/src/lib/datasrc/tests/rbtree_unittest.cc b/src/lib/datasrc/tests/rbtree_unittest.cc index b6d9985d95..8fc5a170d9 100644 --- a/src/lib/datasrc/tests/rbtree_unittest.cc +++ b/src/lib/datasrc/tests/rbtree_unittest.cc @@ -679,47 +679,47 @@ TEST_F(RBTreeTest, dumpTree) { std::ostringstream str; std::ostringstream str2; rbtree.dumpTree(str); - str2 << "tree has 14 node(s)\n" << - "b. (black) [subtreeroot]\n" << - " a. (black)\n" << - " NULL\n" << - " NULL\n" << - " d.e.f. (black) [invisible]\n" << - " begin down from d.e.f.\n" << - " w.y. (black) [invisible] [subtreeroot]\n" << - " begin down from w.y.\n" << - " p. (black) [subtreeroot]\n" << - " o. (red)\n" << - " NULL\n" << - " NULL\n" << - " q. (red)\n" << - " NULL\n" << - " NULL\n" << - " end down from w.y.\n" << - " x. (red)\n" << - " NULL\n" << - " NULL\n" << - " z. (red)\n" << - " begin down from z.\n" << - " j. (black) [subtreeroot]\n" << - " NULL\n" << - " NULL\n" << - " end down from z.\n" << - " NULL\n" << - " NULL\n" << - " end down from d.e.f.\n" << - " c. (red)\n" << - " NULL\n" << - " NULL\n" << - " g.h. (red)\n" << - " begin down from g.h.\n" << - " i. (black) [subtreeroot]\n" << - " NULL\n" << - " k. (red)\n" << - " NULL\n" << - " NULL\n" << - " end down from g.h.\n" << - " NULL\n" << + str2 << "tree has 14 node(s)\n" + "b. (black) [subtreeroot]\n" + " a. (black)\n" + " NULL\n" + " NULL\n" + " d.e.f. (black) [invisible]\n" + " begin down from d.e.f.\n" + " w.y. (black) [invisible] [subtreeroot]\n" + " begin down from w.y.\n" + " p. (black) [subtreeroot]\n" + " o. (red)\n" + " NULL\n" + " NULL\n" + " q. (red)\n" + " NULL\n" + " NULL\n" + " end down from w.y.\n" + " x. (red)\n" + " NULL\n" + " NULL\n" + " z. (red)\n" + " begin down from z.\n" + " j. (black) [subtreeroot]\n" + " NULL\n" + " NULL\n" + " end down from z.\n" + " NULL\n" + " NULL\n" + " end down from d.e.f.\n" + " c. (red)\n" + " NULL\n" + " NULL\n" + " g.h. (red)\n" + " begin down from g.h.\n" + " i. (black) [subtreeroot]\n" + " NULL\n" + " k. (red)\n" + " NULL\n" + " NULL\n" + " end down from g.h.\n" + " NULL\n" " NULL\n"; EXPECT_EQ(str2.str(), str.str()); }