Skip to content

Commit

Permalink
Suppress cata-use-point-apis in some tests
Browse files Browse the repository at this point in the history
We are specifically testing the APIs that this check would refactor the
code away from.
  • Loading branch information
jbytheway committed Jul 7, 2020
1 parent 8cdd687 commit 9a0fdae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/coordinate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ TEST_CASE( "coordinate_operations", "[coords]" )
SECTION( "construct_from_values" ) {
tripoint p = GENERATE( take( num_trials, random_tripoints() ) );
{
//NOLINTNEXTLINE(cata-use-point-apis)
point_abs_ms cp( p.x, p.y );
CHECK( cp.x() == p.x );
CHECK( cp.y() == p.y );
}
{
//NOLINTNEXTLINE(cata-use-point-apis)
tripoint_abs_ms cp( p.x, p.y, p.z );
CHECK( cp.x() == p.x );
CHECK( cp.y() == p.y );
Expand Down

0 comments on commit 9a0fdae

Please sign in to comment.