summaryrefslogtreecommitdiff
path: root/tests/tree.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 13:45:37 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 13:45:37 +0100
commit8da0229a7e172a86c023edc6bb25ba803c68f5d3 (patch)
treec305cf094528b70ae99af79a9a650f9dc98fc0b9 /tests/tree.cpp
parentfb7ed24d557c9f9ac5eaa60dbf22cba509953c1a (diff)
core, tests: Moving core tests to core module
Diffstat (limited to 'tests/tree.cpp')
-rw-r--r--tests/tree.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/tree.cpp b/tests/tree.cpp
deleted file mode 100644
index 2515ee9..0000000
--- a/tests/tree.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <forstio/test/suite.h>
-#include <forstio/core/tree.h>
-
-namespace {
-SAW_TEST("Tree add child"){
- using namespace saw;
-
- 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 tree");
- std::size_t index = eov.get_value();
-
- auto& inner_tr = tr.at(index);
-
- auto eov2 = inner_tr.get_tree().add(420);
- SAW_EXPECT(eov2.is_value(), "Didn't manage to add to inner tree");
- }
-}
-}