summaryrefslogtreecommitdiff
path: root/test/core/NodeTest.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-11-21 12:27:34 +0100
committerAndreas Stöckel <andreas@somweyr.de>2014-11-21 12:27:34 +0100
commit1da7b31f13b00fdf4e572b5847750237f484b505 (patch)
treeb9778684924c0e1fe082cd773ff7830dc63560f1 /test/core/NodeTest.cpp
parentd777bca65566bf15e9e2ed8b23f854fb974c902a (diff)
resolve now resolves lists of generic Managed objects and not nodes (this is needed as e.g. constants need to be resolved, which are TypeInstances but not Nodes)
Diffstat (limited to 'test/core/NodeTest.cpp')
-rw-r--r--test/core/NodeTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/NodeTest.cpp b/test/core/NodeTest.cpp
index 9537d29..182dfdd 100644
--- a/test/core/NodeTest.cpp
+++ b/test/core/NodeTest.cpp
@@ -30,7 +30,7 @@ private:
std::vector<Owned<Node>> children;
protected:
- void doResolve(std::vector<Rooted<Node>> &res,
+ void doResolve(std::vector<Rooted<Managed>> &res,
const std::vector<std::string> &path, Filter filter,
void *filterData, unsigned idx, VisitorSet &visited) override
{
@@ -73,7 +73,7 @@ TEST(Node, simpleResolve)
Rooted<TestNode> child1 = root->addChild(new TestNode(mgr, "child1"));
Rooted<TestNode> child11 = child1->addChild(new TestNode(mgr, "child11"));
- std::vector<Rooted<Node>> res;
+ std::vector<Rooted<Managed>> res;
res = root->resolve(std::vector<std::string>{"root", "child1", "child11"});
ASSERT_EQ(1, res.size());
ASSERT_TRUE(child11 == *(res.begin()));