diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-08 18:24:49 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-08 19:39:31 +0200 |
commit | 75d85549c6d2a5284593e20c21d61fc5d6200bca (patch) | |
tree | b5077e272f238b47af9530f9b2fac2e69839d063 /test | |
parent | 195bf2f6a7d7268a88338ae8fd3a30fdb5196300 (diff) |
Add 'insert before id' to create and move commands.
Diffstat (limited to 'test')
-rw-r--r-- | test/nodetreetest.cc | 10 |
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 |