21 lines
522 B
C++
21 lines
522 B
C++
#include <boost/test/unit_test.hpp>
|
|
|
|
#include "osrm/customizer.hpp"
|
|
#include "osrm/customizer_config.hpp"
|
|
|
|
#include <thread>
|
|
|
|
BOOST_AUTO_TEST_SUITE(library_customize)
|
|
|
|
BOOST_AUTO_TEST_CASE(test_customize_with_invalid_config)
|
|
{
|
|
using namespace osrm;
|
|
|
|
osrm::CustomizationConfig config;
|
|
config.requested_num_threads = std::thread::hardware_concurrency();
|
|
BOOST_CHECK_THROW(osrm::customize(config),
|
|
std::exception); // including osrm::util::exception, etc.
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|