summaryrefslogtreecommitdiff
path: root/tests/tree.cpp
diff options
context:
space:
mode:
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");
- }
-}
-}