Skip to content

Commit

Permalink
Merge pull request #38837 from AMurkin/patch-1
Browse files Browse the repository at this point in the history
Ignore cata-use-named-point-constants warnings in line_test.cpp
  • Loading branch information
ZhilkinSerg authored Mar 17, 2020
2 parents 951f73a + 3876adc commit 723e7f0
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions tests/line_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,33 +92,33 @@ static void check_bresenham( const tripoint &source, const tripoint &destination

TEST_CASE( "3D_bresenham" )
{
check_bresenham( { 0, 0, 0 }, { -1, -1, -1 }, { { -1, -1, -1 } } );
check_bresenham( { 0, 0, 0 }, { -1, -1, 0 }, { { -1, -1, 0 } } );
check_bresenham( { 0, 0, 0 }, { -1, -1, 1 }, { { -1, -1, 1 } } );
check_bresenham( { 0, 0, 0 }, { -1, 0, -1 }, { { -1, 0, -1 } } );
check_bresenham( { 0, 0, 0 }, { -1, 0, 0 }, { { -1, 0, 0 } } );
check_bresenham( { 0, 0, 0 }, { -1, 0, 1 }, { { -1, 0, 1 } } );
check_bresenham( { 0, 0, 0 }, { -1, 1, -1 }, { { -1, 1, -1 } } );
check_bresenham( { 0, 0, 0 }, { -1, 1, 0 }, { { -1, 1, 0 } } );
check_bresenham( { 0, 0, 0 }, { -1, 1, 1 }, { { -1, 1, 1 } } );
check_bresenham( { 0, 0, 0 }, { 0, -1, -1 }, { { 0, -1, -1 } } );
check_bresenham( { 0, 0, 0 }, { 0, -1, 0 }, { { 0, -1, 0 } } );
check_bresenham( { 0, 0, 0 }, { 0, -1, 1 }, { { 0, -1, 1 } } );
check_bresenham( { 0, 0, 0 }, { 0, 0, -1 }, { { 0, 0, -1 } } );
check_bresenham( { 0, 0, 0 }, { 0, 0, 0 }, { } );
check_bresenham( { 0, 0, 0 }, { 0, 0, 1 }, { { 0, 0, 1 } } );
check_bresenham( { 0, 0, 0 }, { 0, 1, -1 }, { { 0, 1, -1 } } );
check_bresenham( { 0, 0, 0 }, { 0, 1, 0 }, { { 0, 1, 0 } } );
check_bresenham( { 0, 0, 0 }, { 0, 1, 1 }, { { 0, 1, 1 } } );
check_bresenham( { 0, 0, 0 }, { 1, -1, -1 }, { { 1, -1, -1 } } );
check_bresenham( { 0, 0, 0 }, { 1, -1, 0 }, { { 1, -1, 0 } } );
check_bresenham( { 0, 0, 0 }, { 1, -1, 1 }, { { 1, -1, 1 } } );
check_bresenham( { 0, 0, 0 }, { 1, 0, -1 }, { { 1, 0, -1 } } );
check_bresenham( { 0, 0, 0 }, { 1, 0, 0 }, { { 1, 0, 0 } } );
check_bresenham( { 0, 0, 0 }, { 1, 0, 1 }, { { 1, 0, 1 } } );
check_bresenham( { 0, 0, 0 }, { 1, 1, -1 }, { { 1, 1, -1 } } );
check_bresenham( { 0, 0, 0 }, { 1, 1, 0 }, { { 1, 1, 0 } } );
check_bresenham( { 0, 0, 0 }, { 1, 1, 1 }, { { 1, 1, 1 } } );
check_bresenham( { 0, 0, 0 }, { -1, -1, -1 }, { { -1, -1, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, -1, 0 }, { { -1, -1, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, -1, 1 }, { { -1, -1, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, 0, -1 }, { { -1, 0, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, 0, 0 }, { { -1, 0, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, 0, 1 }, { { -1, 0, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, 1, -1 }, { { -1, 1, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, 1, 0 }, { { -1, 1, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { -1, 1, 1 }, { { -1, 1, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, -1, -1 }, { { 0, -1, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, -1, 0 }, { { 0, -1, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, -1, 1 }, { { 0, -1, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, 0, -1 }, { { 0, 0, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, 0, 0 }, { } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, 0, 1 }, { { 0, 0, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, 1, -1 }, { { 0, 1, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, 1, 0 }, { { 0, 1, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 0, 1, 1 }, { { 0, 1, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, -1, -1 }, { { 1, -1, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, -1, 0 }, { { 1, -1, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, -1, 1 }, { { 1, -1, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, 0, -1 }, { { 1, 0, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, 0, 0 }, { { 1, 0, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, 0, 1 }, { { 1, 0, 1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, 1, -1 }, { { 1, 1, -1 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, 1, 0 }, { { 1, 1, 0 } } ); // NOLINT(cata-use-named-point-constants)
check_bresenham( { 0, 0, 0 }, { 1, 1, 1 }, { { 1, 1, 1 } } ); // NOLINT(cata-use-named-point-constants)
}

TEST_CASE( "test_normalized_angle" )
Expand Down

0 comments on commit 723e7f0

Please sign in to comment.