From b7ff03b4ff7f8b3202851b98ec81fb2b9673d0ed Mon Sep 17 00:00:00 2001 From: John Bytheway Date: Wed, 1 Jul 2020 22:14:36 -0400 Subject: [PATCH] Suppress cata-use-point-apis in some tests We are specifically testing the APIs that this check would refactor the code away from. --- tests/coordinate_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/coordinate_test.cpp b/tests/coordinate_test.cpp index 116269fcaf545..a8798b41095d8 100644 --- a/tests/coordinate_test.cpp +++ b/tests/coordinate_test.cpp @@ -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 );