summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/de_level_tag.cpp25
-rw-r--r--tests/de_level_tomb.cpp25
-rw-r--r--tests/de_tier_tag.cpp25
-rw-r--r--tests/de_tier_tomb.cpp25
-rw-r--r--tests/dynamic_extension_tests.inc (renamed from tests/dynamic_extension_tests.cpp)12
5 files changed, 100 insertions, 12 deletions
diff --git a/tests/de_level_tag.cpp b/tests/de_level_tag.cpp
new file mode 100644
index 0000000..91f158c
--- /dev/null
+++ b/tests/de_level_tag.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::LEVELING, DeletePolicy::TAGGING> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/de_level_tomb.cpp b/tests/de_level_tomb.cpp
new file mode 100644
index 0000000..c3dc5df
--- /dev/null
+++ b/tests/de_level_tomb.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::LEVELING, DeletePolicy::TOMBSTONE> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/de_tier_tag.cpp b/tests/de_tier_tag.cpp
new file mode 100644
index 0000000..9b6b5a4
--- /dev/null
+++ b/tests/de_tier_tag.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::TEIRING, DeletePolicy::TAGGING> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/de_tier_tomb.cpp b/tests/de_tier_tomb.cpp
new file mode 100644
index 0000000..82942fd
--- /dev/null
+++ b/tests/de_tier_tomb.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::TEIRING, DeletePolicy::TOMBSTONE> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/dynamic_extension_tests.cpp b/tests/dynamic_extension_tests.inc
index 41400c5..f94a294 100644
--- a/tests/dynamic_extension_tests.cpp
+++ b/tests/dynamic_extension_tests.inc
@@ -9,18 +9,6 @@
* All rights reserved. Published under the Modified BSD License.
*
*/
-#include <set>
-#include <random>
-#include <algorithm>
-
-#include "testing.h"
-#include "framework/DynamicExtension.h"
-#include "shard/WIRS.h"
-
-#include <check.h>
-using namespace de;
-
-typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>> DE;
START_TEST(t_create)
{