From d206499057ceaf6927be4fbc3f54e25dacd83034 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 9 Nov 2023 15:29:49 +0100 Subject: core: Renaming tree and branch --- tests/tree.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/tree.cpp b/tests/tree.cpp index ca57a17..ab4cfa2 100644 --- a/tests/tree.cpp +++ b/tests/tree.cpp @@ -5,16 +5,16 @@ namespace { SAW_TEST("Tree insert"){ using namespace saw; - tree troi; + branch troi; { // Replace with value - auto eor = troi.replace_branch(5); + auto eor = troi.replace_tree(5); SAW_EXPECT(eor.is_value(), "Didn't manage to replace with value"); } { - // Replace with branch again - auto eor = troi.replace_value(branch{}); + // Replace with tree again + auto eor = troi.replace_value(tree{}); SAW_EXPECT(eor.is_value(), "Not a value"); } @@ -23,20 +23,20 @@ SAW_TEST("Tree insert"){ SAW_TEST("Tree add child"){ using namespace saw; - branch tr; + tree tr; { auto eov = tr.add(10); SAW_EXPECT(eov.is_value(), "Didn't manage to add value"); } { auto eov = tr.add(); - SAW_EXPECT(eov.is_value(), "Didn't manage to add branch"); + SAW_EXPECT(eov.is_value(), "Didn't manage to add tree"); std::size_t index = eov.get_value(); auto& inner_tr = tr.at(index); - auto eov2 = inner_tr.get_branch().add(420); - SAW_EXPECT(eov2.is_value(), "Didn't manage to add to inner branch"); + auto eov2 = inner_tr.get_tree().add(420); + SAW_EXPECT(eov2.is_value(), "Didn't manage to add to inner tree"); } } } -- cgit v1.2.3