diff --git a/tests/npc_talk_test.cpp b/tests/npc_talk_test.cpp index f5b4a51cc7076..ba1bbdcdc2f9b 100644 --- a/tests/npc_talk_test.cpp +++ b/tests/npc_talk_test.cpp @@ -712,7 +712,7 @@ TEST_CASE( "npc_talk_items", "[npc_talk]" ) const std::vector glass_bottles = g->u.items_with( []( const item & it ) { return it.typeId() == "bottle_glass"; } ); - REQUIRE( glass_bottles.size() > 0 ); + REQUIRE( !glass_bottles.empty() ); REQUIRE( g->u.wield( *glass_bottles.front() ) ); effects = d.responses[14].success; effects.apply( d );