Skip to content

Commit

Permalink
Minor fixes for next release (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaeschke authored Mar 20, 2023
1 parent 915ec44 commit 2fdfdf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixes undefined behavior in debug method. [#135](https://github.com/tzaeschke/phtree-cpp/pull/135)
- API: Fixes `relocate()` return type to be `size_t`. [#136](https://github.com/tzaeschke/phtree-cpp/pull/136)
- Fix constness of B+tree `check()`. [#137](https://github.com/tzaeschke/phtree-cpp/pull/137)
- Minor fixes for next release. [#140](https://github.com/tzaeschke/phtree-cpp/pull/140)

## [1.5.0] - 2023-02-09
### Added
Expand Down
3 changes: 2 additions & 1 deletion test/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package_add_test(b_plus_tree_hash_map_test b_plus_tree_hash_map_test.cc)
package_add_test(b_plus_tree_map_test b_plus_tree_map_test.cc)
package_add_test(b_plus_tree_multimap_test b_plus_tree_multimap_test.cc)
package_add_test(b_priority_queue_test b_priority_queue_test.cc)
package_add_test(b_vector_test b_vector_test.cc)

package_add_test(base_types_test base_types_test.cc)
package_add_test(bits_test bits_test.cc)
package_add_test(b_vector_test b_vector_test.cc)
package_add_test(common_test common_test.cc)

package_add_test(flat_array_map_test flat_array_map_test.cc)
Expand Down
2 changes: 1 addition & 1 deletion test/phtree_f_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ void test_knn_query(DIST_TEST dist_fn, DIST_REF dist_fn_reference) {
while (q != tree.end()) {
// just read the entry
auto& e = *q;
ASSERT_FLOAT_EQ(sorted_data[n]._distance, q.distance());
ASSERT_DOUBLE_EQ(sorted_data[n]._distance, q.distance());
ASSERT_EQ(sorted_data[n]._id, e._i);
ASSERT_EQ(points[sorted_data[n]._id], q.first());
ASSERT_EQ(sorted_data[n]._id, q.second()._i);
Expand Down

0 comments on commit 2fdfdf4

Please sign in to comment.