Files
Cataclysm-DDA/tests/item_stackable_test.cpp
T
Binrui Dong 9fdb7ef59c Run IWYU
* Change _ctype.h and __locale to cctype and clocale

* Change _wctype.h to cwctype in game.cpp

* Change __functional_base to functional

* Remove libcxx internal headers

* Remove UNIX system headers

* Fix clang-tidy error with -nostdinc++
2021-02-06 00:18:41 -05:00

23 lines
533 B
C++

#include <iosfwd>
#include <memory>
#include <vector>
#include "catch/catch.hpp"
#include "item_factory.h"
#include "itype.h"
#include "type_id.h"
#include "units.h"
TEST_CASE( "casings_are_stackable", "[item]" )
{
for( const itype *t : item_controller->all() ) {
bool casing = t->get_id().str().find( "_casing" ) != std::string::npos &&
t->volume < 200_ml;
if( casing ) {
INFO( "casing: " << t->get_id().str() )
CHECK( t->count_by_charges() );
}
}
}