aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_gray_code_rank.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-08-19 17:47:51 +0200
committerDavid Robillard <d@drobilla.net>2018-09-29 14:49:34 +0200
commit864a0cab22998cfd465f3dd2f0514f96c907ed95 (patch)
tree7e826e910dfa2b574654a5deba8fc1ece4b400e8 /test/test_gray_code_rank.cpp
parent601c2080e9667ba686e39823c1ebd58844550002 (diff)
downloadchilbert-864a0cab22998cfd465f3dd2f0514f96c907ed95.tar.gz
chilbert-864a0cab22998cfd465f3dd2f0514f96c907ed95.tar.bz2
chilbert-864a0cab22998cfd465f3dd2f0514f96c907ed95.zip
Add BoundedBitVec
Diffstat (limited to 'test/test_gray_code_rank.cpp')
-rw-r--r--test/test_gray_code_rank.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_gray_code_rank.cpp b/test/test_gray_code_rank.cpp
index ed31d44..0c06a33 100644
--- a/test/test_gray_code_rank.cpp
+++ b/test/test_gray_code_rank.cpp
@@ -19,6 +19,7 @@
#include "test_utils.hpp"
+#include "chilbert/BoundedBitVec.hpp"
#include "chilbert/DynamicBitVec.hpp"
#include "chilbert/GrayCodeRank.hpp"
#include "chilbert/SmallBitVec.hpp"
@@ -148,5 +149,15 @@ main()
test<chilbert::StaticBitVec<65>, 96, 65>(ctx);
test<chilbert::StaticBitVec<997>, 1024, 997>(ctx);
+ test<chilbert::BoundedBitVec<1>, 64, 1>(ctx);
+ test<chilbert::BoundedBitVec<31>, 64, 31>(ctx);
+ test<chilbert::BoundedBitVec<32>, 64, 32>(ctx);
+ test<chilbert::BoundedBitVec<64>, 64, 33>(ctx);
+ test<chilbert::BoundedBitVec<64>, 64, 60>(ctx);
+ test<chilbert::BoundedBitVec<64>, 64, 64>(ctx);
+ test<chilbert::BoundedBitVec<128>, 96, 65>(ctx);
+ test<chilbert::BoundedBitVec<997>, 1024, 997>(ctx);
+ test<chilbert::BoundedBitVec<2048>, 1024, 997>(ctx);
+
return 0;
}