summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/nodetreetest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/nodetreetest.cc b/test/nodetreetest.cc
index 09d4a7f..ea6d28a 100644
--- a/test/nodetreetest.cc
+++ b/test/nodetreetest.cc
@@ -52,23 +52,23 @@ public:
node_t t;
t.attributes["title"] = "root";
t.id = ROOT_ID;
- tree.insertAsChild(0, ROOT_ID, t);
+ tree.insertAsChild(0, ROOT_ID, t, -1);
t.attributes["title"] = "Finished";
t.id = FINISHED_ID;
- tree.insertAsChild(ROOT_ID, FINISHED_ID, t);
+ tree.insertAsChild(ROOT_ID, FINISHED_ID, t, -1);
t.attributes["title"] = "Backlog";
t.id = BACKLOG_ID;
- tree.insertAsChild(ROOT_ID, BACKLOG_ID, t);
+ tree.insertAsChild(ROOT_ID, BACKLOG_ID, t, -1);
t.attributes["title"] = "Lost+Found";
t.id = LOSTFOUND_ID;
- tree.insertAsChild(ROOT_ID, LOSTFOUND_ID, t);
+ tree.insertAsChild(ROOT_ID, LOSTFOUND_ID, t, -1);
t.attributes["title"] = "Projects";
t.id = PROJECTS_ID;
- tree.insertAsChild(ROOT_ID, PROJECTS_ID, t);
+ tree.insertAsChild(ROOT_ID, PROJECTS_ID, t, -1);
DGUNIT_ASSERT_EQUAL(5, tree.bfs(0).size()); // Testing BFS function
DGUNIT_ASSERT_EQUAL(PROJECTS_ID, tree.data(PROJECTS_ID).id); // Testing project id