From 0a591afd7811d85a7253c3f98e8c7a63a6131b74 Mon Sep 17 00:00:00 2001 From: moxian Date: Tue, 17 Dec 2024 14:53:19 -0800 Subject: [PATCH] clang-tidy tests --- tests/coverage_test.cpp | 4 ++-- tests/iteminfo_test.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/coverage_test.cpp b/tests/coverage_test.cpp index 414a8ebb8cf35..754dbd32498a2 100644 --- a/tests/coverage_test.cpp +++ b/tests/coverage_test.cpp @@ -22,13 +22,13 @@ static const flag_id json_flag_FILTHY( "FILTHY" ); static const mtype_id mon_manhack( "mon_manhack" ); +static const sub_bodypart_str_id sub_body_part_eyes_right( "eyes_right" ); + static const int num_iters = 10000; static constexpr tripoint_bub_ms dude_pos( HALF_MAPSIZE_X + 4, HALF_MAPSIZE_Y, 0 ); static constexpr tripoint_bub_ms mon_pos( HALF_MAPSIZE_X + 3, HALF_MAPSIZE_Y, 0 ); static constexpr tripoint_bub_ms badguy_pos( HALF_MAPSIZE_X + 1, HALF_MAPSIZE_Y, 0 ); -static const sub_bodypart_str_id sub_body_part_eyes_right( "eyes_right" ); - static void check_near( const std::string &subject, float actual, const float expected, const float tolerance ) { diff --git a/tests/iteminfo_test.cpp b/tests/iteminfo_test.cpp index 2c8ace6e9cb8d..04034fe8d3e6d 100644 --- a/tests/iteminfo_test.cpp +++ b/tests/iteminfo_test.cpp @@ -27,15 +27,15 @@ static const itype_id itype_candle_wax( "candle_wax" ); static const itype_id itype_dress_shirt( "dress_shirt" ); static const itype_id itype_match( "match" ); -static const itype_id itype_test_armor_chitin( "test_armor_chitin" ); -static const itype_id itype_test_armor_chitin_copy( "test_armor_chitin_copy" ); static const itype_id itype_test_armor_chitin_copy_prop( "test_armor_chitin_copy_prop" ); static const itype_id itype_test_armor_chitin_copy_rel( "test_armor_chitin_copy_rel" ); -static const itype_id itype_test_armor_chitin_copy_w_armor( "test_armor_chitin_copy_w_armor" ); static const itype_id itype_test_armor_chitin_copy_w_armor_prop( "test_armor_chitin_copy_w_armor_prop" ); static const itype_id itype_test_armor_chitin_copy_w_armor_rel( "test_armor_chitin_copy_w_armor_rel" ); +static const itype_id itype_test_armor_chitin_copy_w_armor( "test_armor_chitin_copy_w_armor" ); +static const itype_id itype_test_armor_chitin_copy( "test_armor_chitin_copy" ); +static const itype_id itype_test_armor_chitin( "test_armor_chitin" ); static const itype_id itype_textbook_chemistry( "textbook_chemistry" ); static const itype_id itype_tshirt( "tshirt" ); static const itype_id itype_zentai( "zentai" );