aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-08-19 17:27:44 +0200
committerDavid Robillard <d@drobilla.net>2018-09-29 14:49:25 +0200
commit601c2080e9667ba686e39823c1ebd58844550002 (patch)
treebdd7fed29ff7f7ddaaad45fe6aaad5d9d4348e2c /test
parent0013efd3cc0c2aa9150c983babd52d3de8e32744 (diff)
downloadchilbert-601c2080e9667ba686e39823c1ebd58844550002.tar.gz
chilbert-601c2080e9667ba686e39823c1ebd58844550002.tar.bz2
chilbert-601c2080e9667ba686e39823c1ebd58844550002.zip
Rename bit vector types
Diffstat (limited to 'test')
-rw-r--r--test/test_bitvec.cpp38
-rw-r--r--test/test_gray_code_rank.cpp34
-rw-r--r--test/test_hilbert.cpp46
-rw-r--r--test/test_utils.hpp4
4 files changed, 61 insertions, 61 deletions
diff --git a/test/test_bitvec.cpp b/test/test_bitvec.cpp
index fdadb19..ffdf823 100644
--- a/test/test_bitvec.cpp
+++ b/test/test_bitvec.cpp
@@ -19,8 +19,8 @@
#include "test_utils.hpp"
-#include "chilbert/BigBitVec.hpp"
-#include "chilbert/FixBitVec.hpp"
+#include "chilbert/DynamicBitVec.hpp"
+#include "chilbert/SmallBitVec.hpp"
#include "chilbert/StaticBitVec.hpp"
#include <cassert>
@@ -331,23 +331,23 @@ main()
{
Context ctx;
- // test<chilbert::CFixBitVec, 0>(ctx);
- test<chilbert::CFixBitVec, 1>(ctx);
- test<chilbert::CFixBitVec, 31>(ctx);
- test<chilbert::CFixBitVec, 32>(ctx);
- test<chilbert::CFixBitVec, 33>(ctx);
- test<chilbert::CFixBitVec, 63>(ctx);
- test<chilbert::CFixBitVec, 64>(ctx);
-
- test<chilbert::CBigBitVec, 0>(ctx);
- test<chilbert::CBigBitVec, 1>(ctx);
- test<chilbert::CBigBitVec, 31>(ctx);
- test<chilbert::CBigBitVec, 32>(ctx);
- test<chilbert::CBigBitVec, 33>(ctx);
- test<chilbert::CBigBitVec, 63>(ctx);
- test<chilbert::CBigBitVec, 64>(ctx);
- test<chilbert::CBigBitVec, 65>(ctx);
- test<chilbert::CBigBitVec, 997>(ctx);
+ // test<chilbert::SmallBitVec, 0>(ctx);
+ test<chilbert::SmallBitVec, 1>(ctx);
+ test<chilbert::SmallBitVec, 31>(ctx);
+ test<chilbert::SmallBitVec, 32>(ctx);
+ test<chilbert::SmallBitVec, 33>(ctx);
+ test<chilbert::SmallBitVec, 63>(ctx);
+ test<chilbert::SmallBitVec, 64>(ctx);
+
+ test<chilbert::DynamicBitVec, 0>(ctx);
+ test<chilbert::DynamicBitVec, 1>(ctx);
+ test<chilbert::DynamicBitVec, 31>(ctx);
+ test<chilbert::DynamicBitVec, 32>(ctx);
+ test<chilbert::DynamicBitVec, 33>(ctx);
+ test<chilbert::DynamicBitVec, 63>(ctx);
+ test<chilbert::DynamicBitVec, 64>(ctx);
+ test<chilbert::DynamicBitVec, 65>(ctx);
+ test<chilbert::DynamicBitVec, 997>(ctx);
test<chilbert::StaticBitVec<0>, 0>(ctx);
test<chilbert::StaticBitVec<1>, 1>(ctx);
diff --git a/test/test_gray_code_rank.cpp b/test/test_gray_code_rank.cpp
index fa3fe3c..ed31d44 100644
--- a/test/test_gray_code_rank.cpp
+++ b/test/test_gray_code_rank.cpp
@@ -19,9 +19,9 @@
#include "test_utils.hpp"
-#include "chilbert/BigBitVec.hpp"
-#include "chilbert/FixBitVec.hpp"
+#include "chilbert/DynamicBitVec.hpp"
#include "chilbert/GrayCodeRank.hpp"
+#include "chilbert/SmallBitVec.hpp"
#include "chilbert/StaticBitVec.hpp"
#include <algorithm>
@@ -123,21 +123,21 @@ main()
{
Context ctx;
- test<chilbert::CFixBitVec, 64, 1>(ctx);
- test<chilbert::CFixBitVec, 64, 31>(ctx);
- test<chilbert::CFixBitVec, 64, 32>(ctx);
- test<chilbert::CFixBitVec, 64, 33>(ctx);
- test<chilbert::CFixBitVec, 64, 60>(ctx);
- test<chilbert::CFixBitVec, 64, 64>(ctx);
-
- test<chilbert::CBigBitVec, 64, 1>(ctx);
- test<chilbert::CBigBitVec, 64, 31>(ctx);
- test<chilbert::CBigBitVec, 64, 32>(ctx);
- test<chilbert::CBigBitVec, 64, 33>(ctx);
- test<chilbert::CBigBitVec, 64, 60>(ctx);
- test<chilbert::CBigBitVec, 64, 64>(ctx);
- test<chilbert::CBigBitVec, 96, 65>(ctx);
- test<chilbert::CBigBitVec, 1024, 997>(ctx);
+ test<chilbert::SmallBitVec, 64, 1>(ctx);
+ test<chilbert::SmallBitVec, 64, 31>(ctx);
+ test<chilbert::SmallBitVec, 64, 32>(ctx);
+ test<chilbert::SmallBitVec, 64, 33>(ctx);
+ test<chilbert::SmallBitVec, 64, 60>(ctx);
+ test<chilbert::SmallBitVec, 64, 64>(ctx);
+
+ test<chilbert::DynamicBitVec, 64, 1>(ctx);
+ test<chilbert::DynamicBitVec, 64, 31>(ctx);
+ test<chilbert::DynamicBitVec, 64, 32>(ctx);
+ test<chilbert::DynamicBitVec, 64, 33>(ctx);
+ test<chilbert::DynamicBitVec, 64, 60>(ctx);
+ test<chilbert::DynamicBitVec, 64, 64>(ctx);
+ test<chilbert::DynamicBitVec, 96, 65>(ctx);
+ test<chilbert::DynamicBitVec, 1024, 997>(ctx);
test<chilbert::StaticBitVec<1>, 64, 1>(ctx);
test<chilbert::StaticBitVec<31>, 64, 31>(ctx);
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp
index 0daf749..3abcdd5 100644
--- a/test/test_hilbert.cpp
+++ b/test/test_hilbert.cpp
@@ -19,8 +19,8 @@
#include "test_utils.hpp"
-#include "chilbert/BigBitVec.hpp"
-#include "chilbert/FixBitVec.hpp"
+#include "chilbert/DynamicBitVec.hpp"
+#include "chilbert/SmallBitVec.hpp"
#include "chilbert/Hilbert.hpp"
#include "chilbert/StaticBitVec.hpp"
@@ -171,17 +171,17 @@ main()
{
Context ctx;
- test_standard<chilbert::CFixBitVec, 4, 2>(ctx);
- test_standard<chilbert::CFixBitVec, 32, 2>(ctx);
- test_standard<chilbert::CFixBitVec, 16, 4>(ctx);
- test_standard<chilbert::CFixBitVec, 8, 8>(ctx);
- test_standard<chilbert::CFixBitVec, 4, 16>(ctx);
- test_standard<chilbert::CFixBitVec, 2, 32>(ctx);
- test_standard<chilbert::CFixBitVec, 1, 64>(ctx);
+ test_standard<chilbert::SmallBitVec, 4, 2>(ctx);
+ test_standard<chilbert::SmallBitVec, 32, 2>(ctx);
+ test_standard<chilbert::SmallBitVec, 16, 4>(ctx);
+ test_standard<chilbert::SmallBitVec, 8, 8>(ctx);
+ test_standard<chilbert::SmallBitVec, 4, 16>(ctx);
+ test_standard<chilbert::SmallBitVec, 2, 32>(ctx);
+ test_standard<chilbert::SmallBitVec, 1, 64>(ctx);
- test_standard<chilbert::CBigBitVec, 4, 65>(ctx);
- test_standard<chilbert::CBigBitVec, 32, 64>(ctx);
- test_standard<chilbert::CBigBitVec, 63, 128>(ctx);
+ test_standard<chilbert::DynamicBitVec, 4, 65>(ctx);
+ test_standard<chilbert::DynamicBitVec, 32, 64>(ctx);
+ test_standard<chilbert::DynamicBitVec, 63, 128>(ctx);
test_standard<chilbert::StaticBitVec<4 * 2>, 4, 2>(ctx);
test_standard<chilbert::StaticBitVec<32 * 2>, 32, 2>(ctx);
@@ -194,17 +194,17 @@ main()
test_standard<chilbert::StaticBitVec<32 * 64>, 32, 64>(ctx);
test_standard<chilbert::StaticBitVec<63 * 128>, 63, 128>(ctx);
- test_compact<chilbert::CFixBitVec, 4, 2>(ctx);
- test_compact<chilbert::CFixBitVec, 32, 2>(ctx);
- test_compact<chilbert::CFixBitVec, 16, 4>(ctx);
- test_compact<chilbert::CFixBitVec, 8, 8>(ctx);
- test_compact<chilbert::CFixBitVec, 4, 16>(ctx);
- test_compact<chilbert::CFixBitVec, 2, 32>(ctx);
- test_compact<chilbert::CFixBitVec, 1, 64>(ctx);
-
- test_compact<chilbert::CBigBitVec, 4, 65>(ctx);
- test_compact<chilbert::CBigBitVec, 32, 64>(ctx);
- test_compact<chilbert::CBigBitVec, 63, 128>(ctx);
+ test_compact<chilbert::SmallBitVec, 4, 2>(ctx);
+ test_compact<chilbert::SmallBitVec, 32, 2>(ctx);
+ test_compact<chilbert::SmallBitVec, 16, 4>(ctx);
+ test_compact<chilbert::SmallBitVec, 8, 8>(ctx);
+ test_compact<chilbert::SmallBitVec, 4, 16>(ctx);
+ test_compact<chilbert::SmallBitVec, 2, 32>(ctx);
+ test_compact<chilbert::SmallBitVec, 1, 64>(ctx);
+
+ test_compact<chilbert::DynamicBitVec, 4, 65>(ctx);
+ test_compact<chilbert::DynamicBitVec, 32, 64>(ctx);
+ test_compact<chilbert::DynamicBitVec, 63, 128>(ctx);
test_compact<chilbert::StaticBitVec<4 * 2>, 4, 2>(ctx);
test_compact<chilbert::StaticBitVec<32 * 2>, 32, 2>(ctx);
diff --git a/test/test_utils.hpp b/test/test_utils.hpp
index 37db804..7c52f56 100644
--- a/test/test_utils.hpp
+++ b/test/test_utils.hpp
@@ -20,8 +20,8 @@
#undef NDEBUG
-#include "chilbert/BigBitVec.hpp"
-#include "chilbert/FixBitVec.hpp"
+#include "chilbert/DynamicBitVec.hpp"
+#include "chilbert/SmallBitVec.hpp"
#include <cstddef>
#include <cstdint>