9fdb7ef59c
* 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++
23 lines
533 B
C++
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() );
|
|
}
|
|
}
|
|
}
|