From 75d85549c6d2a5284593e20c21d61fc5d6200bca Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 8 Jun 2020 18:24:49 +0200 Subject: Add 'insert before id' to create and move commands. --- test/nodetreetest.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') 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 -- cgit v1.2.3