Skip to content

Commit

Permalink
Disable clang-format for comments in the test code
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsumicco committed Feb 22, 2020
1 parent 53a6968 commit ef8f22c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/openvslam/data/common_get_cell_indices.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ TEST(common, invalid_cases) {
// create keypoints
std::vector<cv::KeyPoint> test_cases;
constexpr float eps = 0.01;
// clang-format off
// - invalid corners
test_cases.emplace_back(cv::KeyPoint{cam.img_bounds_.min_x_ - eps, cam.img_bounds_.min_y_ - eps, 0.0}); // top left
test_cases.emplace_back(cv::KeyPoint{cam.img_bounds_.max_x_, cam.img_bounds_.min_y_ - eps, 0.0}); // top right
Expand All @@ -128,6 +129,7 @@ TEST(common, invalid_cases) {
test_cases.emplace_back(cv::KeyPoint{cols / 2.0, cam.img_bounds_.max_y_, 0.0}); // bottom center
test_cases.emplace_back(cv::KeyPoint{cam.img_bounds_.min_x_ - eps, rows / 2.0, 0.0}); // left center
test_cases.emplace_back(cv::KeyPoint{cam.img_bounds_.max_x_, rows / 2.0, 0.0}); // right center
// clang-format on

// check
for (const auto& test_case : test_cases) {
Expand Down

0 comments on commit ef8f22c

Please sign in to comment.