oops, fix test compilation broken by 2011-12-16T03:38:59Z!alinkmaze@gmail.com
This commit is contained in:
parent
a0336a9be4
commit
b5cf301848
1 changed files with 0 additions and 22 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue