diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-09 15:29:49 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-09 15:30:04 +0100 |
commit | d206499057ceaf6927be4fbc3f54e25dacd83034 (patch) | |
tree | d23e6b1e88e706491c084abb7ac3ce327982f35b /tests | |
parent | 48b53a8bd67556ede6b50bae29edd0c3d515c957 (diff) |
core: Renaming tree and branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tree.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<int> troi; + branch<int> 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<int>{}); + // Replace with tree again + auto eor = troi.replace_value(tree<int>{}); 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<int> tr; + tree<int> 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"); } } } |