test: prepare BPS tree tests for new tree flavors
New BPS tree flavors are to be introduced and tested with the existing test suite. There're a bunch of problems though: 1. The white box test uses magic constants to performs its checks, it is better to use constants defined by the bps_tree.h instead. 2. The bps_tree.cc test itself is not TAP-compatible, fix this by introducing more assertions. 3. The bps_tree_iteartor.c test is not TAP-compatible too, is uses the result file to check some cases. Let's remove the manual printing tests and modify the automated ones to cover the removed cases. By the way performed minor bps_tree.cc test refactoring. NO_DOC=test update NO_CHANGELOG=test update
Showing
- test/unit/CMakeLists.txt 2 additions, 2 deletionstest/unit/CMakeLists.txt
- test/unit/bps_tree.cc 136 additions, 159 deletionstest/unit/bps_tree.cc
- test/unit/bps_tree.result 0 additions, 286 deletionstest/unit/bps_tree.result
- test/unit/bps_tree_iterator.cc 53 additions, 116 deletionstest/unit/bps_tree_iterator.cc
- test/unit/bps_tree_iterator.result 0 additions, 21 deletionstest/unit/bps_tree_iterator.result
Loading
Please register or sign in to comment