File: mod_test.cpp

package info (click to toggle)
cataclysm-dda 0.C%2Bgit20190228.faafa3a-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 181,636 kB
  • sloc: cpp: 256,609; python: 2,621; makefile: 862; sh: 495; perl: 37; xml: 33
file content (15 lines) | stat: -rw-r--r-- 457 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <algorithm>

#include "catch/catch.hpp"
#include "item.h"
#include "worldfactory.h"

TEST_CASE( "Boat mod is loaded correctly or not at all" )
{
    const auto &mods = world_generator->active_world->active_mod_order;
    if( std::find( mods.begin(), mods.end(), mod_id( "boats" ) ) != mods.end() ) {
        REQUIRE( item::type_is_defined( "inflatable_boat" ) );
    } else {
        REQUIRE( !item::type_is_defined( "inflatable_boat" ) );
    }
}