oops, fix test compilation broken by 2011-12-16T03:38:59Z!alinkmaze@gmail.com

This commit is contained in:
Ali El Gariani 2011-12-16 04:24:19 +00:00
parent a0336a9be4
commit b5cf301848

View file

@ -608,28 +608,6 @@ BOOST_AUTO_TEST_CASE(test_l_modification_decoding_no_args)
BOOST_CHECK_EQUAL(queue.size(), 0);
}
/** Tests if the L modification with one argument is correctly decoded
*
* @todo check if the surface is correct
*/
BOOST_AUTO_TEST_CASE(test_l_modification_decoding_1_arg)
{
environment_setup env_setup;
modification_queue queue = modification::decode("~L(wesnoth-icon.png)");
BOOST_REQUIRE_EQUAL(queue.size(), 1);
light_modification* mod = dynamic_cast<light_modification*>(queue.top());
// The dynamic_cast returns NULL if the argument doesn't match the type
BOOST_REQUIRE(mod != NULL);
BOOST_CHECK(!mod->get_surface().null());
delete mod;
}
/// Tests if the SCALE modification without arguments is ignored
BOOST_AUTO_TEST_CASE(test_scale_modification_decoding_no_args)
{