diff --git a/data/test/scenarios/conditionals.cfg b/data/test/scenarios/conditionals.cfg new file mode 100644 index 00000000000..1d14556a2de --- /dev/null +++ b/data/test/scenarios/conditionals.cfg @@ -0,0 +1,42 @@ +# This test checks conditional tags + +{GENERIC_UNIT_TEST "check_conditionals_1" ( + [event] + name = start + + [if] + [true][/true] + [and] + [true][/true] + [/and] + [or] + [true][/true] + [/or] + [not] + [false][/false] + [/not] + [then] + {RETURN [true][/true]} + [/then] + [/if] + [/event] +)} + +{GENERIC_UNIT_TEST "check_conditionals_2" ( + [event] + name = start + + [if] + [true][/true] + [and] + [true][/true] + [/and] + [or] + [false][/false] + [/or] + [then] + {RETURN [true][/true]} + [/then] + [/if] + [/event] +)} diff --git a/wml_test_schedule b/wml_test_schedule index 6335b955d09..37a8717ad72 100644 --- a/wml_test_schedule +++ b/wml_test_schedule @@ -132,3 +132,8 @@ 0 test_wml_menu_items_1 1 test_wml_menu_items_2 0 test_wml_menu_items_3 +# +# Conditional tests +# +0 check_conditionals_1 +0 check_conditionals_2