mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 23:11:41 +00:00

There is some WML in data/test/scenarios/ that causes wmlindent to misbehave (bug #22264 and possibly others awaiting a more thorough diagnosis), so that subdir is not part of this commit.
59 lines
1.1 KiB
INI
59 lines
1.1 KiB
INI
#textdomain wesnoth
|
|
#define RETURN X
|
|
[if]
|
|
{X}
|
|
[then]
|
|
[endlevel]
|
|
result=victory
|
|
linger_mode = yes
|
|
[/endlevel]
|
|
[/then]
|
|
[else]
|
|
[endlevel]
|
|
result=defeat
|
|
linger_mode = yes
|
|
[/endlevel]
|
|
[/else]
|
|
[/if]
|
|
#enddef
|
|
|
|
#define ASSERT X
|
|
[if]
|
|
{X}
|
|
[else]
|
|
[endlevel]
|
|
result=defeat
|
|
linger_mode = yes
|
|
[/endlevel]
|
|
[/else]
|
|
[/if]
|
|
#enddef
|
|
|
|
#define GENERIC_UNIT_TEST NAME CONTENT
|
|
[test]
|
|
name = "Unit Test " + {NAME}
|
|
map_data = "{test/maps/generic_unit_test.map}"
|
|
turns = -1
|
|
id = {NAME}
|
|
|
|
{DAWN}
|
|
|
|
[side]
|
|
side=1
|
|
controller=human
|
|
name = "Alice"
|
|
type = Elvish Archer
|
|
id=alice
|
|
[/side]
|
|
[side]
|
|
side=2
|
|
controller=human
|
|
name = "Bob"
|
|
type = Orcish Grunt
|
|
id=bob
|
|
[/side]
|
|
|
|
{CONTENT}
|
|
[/test]
|
|
#enddef
|