Skip to content

Commit

Permalink
Only check health of comestibles from 'dda' (#59094)
Browse files Browse the repository at this point in the history
We don't care about making assertions for modded items, so just skip
them.
  • Loading branch information
anothersimulacrum authored Jul 9, 2022
1 parent 979718d commit b3c3acd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/comestible_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ TEST_CASE( "comestible_health_bounds", "[comestible]" )
if( ( comest_type != "FOOD" && comest_type != "DRINK" ) || has_mutagen_vit( comest ) ) {
continue;
}
if( it->src.back().second.str() != "dda" ) {
continue;
}

INFO( it->get_id() );
CHECK( comest.healthy <= 0 );
Expand Down

0 comments on commit b3c3acd

Please sign in to comment.