Added some conditional unit tests

This commit is contained in:
Charles Dang 2015-04-03 08:31:13 +11:00
parent e8df45fe91
commit 0911b1f4d5
2 changed files with 47 additions and 0 deletions

View file

@ -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]
)}

View file

@ -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