From 864a0cab22998cfd465f3dd2f0514f96c907ed95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Aug 2018 17:47:51 +0200 Subject: Add BoundedBitVec --- test/test_bitvec.cpp | 12 ++++++++++++ test/test_gray_code_rank.cpp | 11 +++++++++++ test/test_hilbert.cpp | 14 +++++++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_bitvec.cpp b/test/test_bitvec.cpp index ffdf823..1596042 100644 --- a/test/test_bitvec.cpp +++ b/test/test_bitvec.cpp @@ -19,6 +19,7 @@ #include "test_utils.hpp" +#include "chilbert/BoundedBitVec.hpp" #include "chilbert/DynamicBitVec.hpp" #include "chilbert/SmallBitVec.hpp" #include "chilbert/StaticBitVec.hpp" @@ -359,5 +360,16 @@ main() test, 65>(ctx); test, 997>(ctx); + test, 0>(ctx); + test, 1>(ctx); + test, 31>(ctx); + test, 32>(ctx); + test, 33>(ctx); + test, 63>(ctx); + test, 64>(ctx); + test, 65>(ctx); + test, 997>(ctx); + test, 997>(ctx); + return 0; } 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, 96, 65>(ctx); test, 1024, 997>(ctx); + test, 64, 1>(ctx); + test, 64, 31>(ctx); + test, 64, 32>(ctx); + test, 64, 33>(ctx); + test, 64, 60>(ctx); + test, 64, 64>(ctx); + test, 96, 65>(ctx); + test, 1024, 997>(ctx); + test, 1024, 997>(ctx); + return 0; } diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp index 3abcdd5..ad99454 100644 --- a/test/test_hilbert.cpp +++ b/test/test_hilbert.cpp @@ -19,9 +19,10 @@ #include "test_utils.hpp" +#include "chilbert/BoundedBitVec.hpp" #include "chilbert/DynamicBitVec.hpp" -#include "chilbert/SmallBitVec.hpp" #include "chilbert/Hilbert.hpp" +#include "chilbert/SmallBitVec.hpp" #include "chilbert/StaticBitVec.hpp" #include @@ -194,6 +195,17 @@ main() test_standard, 32, 64>(ctx); test_standard, 63, 128>(ctx); + test_standard, 4, 2>(ctx); + test_standard, 32, 2>(ctx); + test_standard, 16, 4>(ctx); + test_standard, 8, 8>(ctx); + test_standard, 4, 16>(ctx); + test_standard, 2, 32>(ctx); + test_standard, 1, 64>(ctx); + test_standard, 4, 65>(ctx); + test_standard, 32, 64>(ctx); + test_standard, 63, 128>(ctx); + test_compact(ctx); test_compact(ctx); test_compact(ctx); -- cgit v1.2.1