aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_hilbert.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-08-19 16:47:38 +0200
committerDavid Robillard <d@drobilla.net>2018-09-29 14:49:01 +0200
commit03f39c8be08d632d1f982f5ba5f2e95256be1122 (patch)
tree41ae78da247659bf8261bdd2397fadf32550d2d9 /test/test_hilbert.cpp
parentfa3d8f677b6a30c2115e7d167d4938e293dfad81 (diff)
downloadchilbert-03f39c8be08d632d1f982f5ba5f2e95256be1122.tar.gz
chilbert-03f39c8be08d632d1f982f5ba5f2e95256be1122.tar.bz2
chilbert-03f39c8be08d632d1f982f5ba5f2e95256be1122.zip
Use consistent naming scheme
Diffstat (limited to 'test/test_hilbert.cpp')
-rw-r--r--test/test_hilbert.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp
index 36a2992..0daf749 100644
--- a/test/test_hilbert.cpp
+++ b/test/test_hilbert.cpp
@@ -106,12 +106,12 @@ test_standard(Context& ctx)
H ha = make_zero_bitvec<H, D * M>();
assert(ha.size() >= D * M);
- chilbert::coordsToIndex(pa.data(), M, D, ha);
+ chilbert::coords_to_index(pa.data(), M, D, ha);
{
// Ensure unmapping results in the original point
auto pa_out = make_random_point<M, D>(ctx);
- chilbert::indexToCoords(pa_out.data(), M, D, ha);
+ chilbert::index_to_coords(pa_out.data(), M, D, ha);
assert(pa_out == pa);
}
@@ -124,7 +124,7 @@ test_standard(Context& ctx)
// Unmap next hilbert index to a point
auto pb = make_random_point<M, D>(ctx);
- chilbert::indexToCoords(pb.data(), M, D, hb);
+ chilbert::index_to_coords(pb.data(), M, D, hb);
// Ensure next point is 1 unit of distance away from first
assert(squared_distance(pa, pb) == 1);
@@ -142,12 +142,12 @@ test_compact(Context& ctx)
T ha = make_zero_bitvec<T, D * M>();
assert(ha.size() >= D * M);
- chilbert::coordsToCompactIndex(pa.data(), ms.data(), D, ha);
+ chilbert::coords_to_compact_index(pa.data(), ms.data(), D, ha);
{
// Ensure unmapping results in the original point
auto pa_out = make_random_point<M, D>(ctx);
- chilbert::compactIndexToCoords(pa_out.data(), ms.data(), D, ha);
+ chilbert::compact_index_to_coords(pa_out.data(), ms.data(), D, ha);
assert(pa_out == pa);
}
@@ -160,7 +160,7 @@ test_compact(Context& ctx)
// Unmap next hilbert index to a point
auto pb = make_random_point<M, D>(ctx);
- chilbert::compactIndexToCoords(pb.data(), ms.data(), D, hb);
+ chilbert::compact_index_to_coords(pb.data(), ms.data(), D, hb);
// Ensure next point is 1 unit of distance away from first
assert(squared_distance(pa, pb) == 1);