From aaa708a9d953c499e0547a3142870833646adab1 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 9 Jan 2015 15:37:20 +0100 Subject: autoformat --- test/core/model/NodeTest.cpp | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'test/core') diff --git a/test/core/model/NodeTest.cpp b/test/core/model/NodeTest.cpp index 880ce33..3bfa31b 100644 --- a/test/core/model/NodeTest.cpp +++ b/test/core/model/NodeTest.cpp @@ -45,12 +45,14 @@ public: { } - Rooted addCompositum(Handle n) { + Rooted addCompositum(Handle n) + { composita.push_back(n); return n; } - Rooted addReference(Handle n) { + Rooted addReference(Handle n) + { references.push_back(n); return n; } @@ -82,7 +84,8 @@ TEST(Node, resolveCompositaSimple) Manager mgr{1}; Rooted root{new TestNode(mgr, "root")}; Rooted child1 = root->addCompositum(new TestNode(mgr, "child1")); - Rooted child11 = child1->addCompositum(new TestNode(mgr, "child11")); + Rooted child11 = + child1->addCompositum(new TestNode(mgr, "child11")); std::vector res; res = root->resolve(std::vector{"root", "child1", "child11"}, @@ -107,7 +110,8 @@ TEST(Node, resolveCompositaDouble) Rooted root{new TestNode(mgr, "root")}; Rooted root2 = root->addCompositum(new TestNode(mgr, "root")); Rooted child1 = root2->addCompositum(new TestNode(mgr, "child1")); - Rooted child11 = child1->addCompositum(new TestNode(mgr, "child11")); + Rooted child11 = + child1->addCompositum(new TestNode(mgr, "child11")); std::vector res; res = root->resolve(std::vector{"root", "child1", "child11"}, @@ -133,9 +137,11 @@ TEST(Node, resolveAmbigousComposita) Rooted a = root->addCompositum(new TestNode(mgr, "a")); Rooted b = root->addCompositum(new TestNode(mgr, "b")); Rooted child1 = a->addCompositum(new TestNode(mgr, "child1")); - Rooted child11 = child1->addCompositum(new TestNode(mgr, "child11")); + Rooted child11 = + child1->addCompositum(new TestNode(mgr, "child11")); Rooted child12 = b->addCompositum(new TestNode(mgr, "child1")); - Rooted child112 = child12->addCompositum(new TestNode(mgr, "child11")); + Rooted child112 = + child12->addCompositum(new TestNode(mgr, "child11")); std::vector res; res = root->resolve(std::vector{"child1", "child11"}, @@ -158,9 +164,11 @@ TEST(Node, resolveReferences) Rooted a = root->addReference(new TestNode(mgr, "a")); Rooted b = root->addReference(new TestNode(mgr, "b")); Rooted child1 = a->addCompositum(new TestNode(mgr, "child1")); - Rooted child11 = child1->addCompositum(new TestNode(mgr, "child11")); + Rooted child11 = + child1->addCompositum(new TestNode(mgr, "child11")); Rooted child12 = b->addCompositum(new TestNode(mgr, "child1")); - Rooted child112 = child12->addCompositum(new TestNode(mgr, "child11")); + Rooted child112 = + child12->addCompositum(new TestNode(mgr, "child11")); std::vector res; res = root->resolve(std::vector{"a", "child1", "child11"}, @@ -199,9 +207,11 @@ TEST(Node, resolveReferencesAndComposita) Rooted a = root->addReference(new TestNode(mgr, "a")); Rooted b = root->addReference(new TestNode(mgr, "b")); Rooted child1 = a->addCompositum(new TestNode(mgr, "child1")); - Rooted child11 = child1->addCompositum(new TestNode(mgr, "child11")); + Rooted child11 = + child1->addCompositum(new TestNode(mgr, "child11")); Rooted child12 = b->addCompositum(new TestNode(mgr, "child1")); - Rooted child112 = child12->addCompositum(new TestNode(mgr, "child11")); + Rooted child112 = + child12->addCompositum(new TestNode(mgr, "child11")); Rooted child13 = root->addCompositum(new TestNode(mgr, "child1")); std::vector res; @@ -233,5 +243,4 @@ TEST(Node, resolveReferencesAndComposita) ASSERT_EQ(1U, res.size()); ASSERT_TRUE(child13 == res[0].node); } - } -- cgit v1.2.3