Basic test cases for reading town, dialogue, and outdoor records
This commit is contained in:
7
test/files/town/bad_creature.xml
Normal file
7
test/files/town/bad_creature.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<creature id='1'>
|
||||
<level/>
|
||||
</creature>
|
||||
</town>
|
5
test/files/town/bad_exit_dir.xml
Normal file
5
test/files/town/bad_exit_dir.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<exit dir='up' x='0' y='0'/>
|
||||
</town>
|
7
test/files/town/bad_flag.xml
Normal file
7
test/files/town/bad_flag.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<flags>
|
||||
<whoops/>
|
||||
</flags>
|
||||
</town>
|
7
test/files/town/bad_item.xml
Normal file
7
test/files/town/bad_item.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<item id='1'>
|
||||
<level/>
|
||||
</item>
|
||||
</town>
|
5
test/files/town/bad_onenter_condition.xml
Normal file
5
test/files/town/bad_onenter_condition.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<onenter condition='kumquat'/>
|
||||
</town>
|
5
test/files/town/bad_onexit_dir.xml
Normal file
5
test/files/town/bad_onexit_dir.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<onexit dir='up'/>
|
||||
</town>
|
1
test/files/town/bad_root_attr.xml
Normal file
1
test/files/town/bad_root_attr.xml
Normal file
@@ -0,0 +1 @@
|
||||
<town vers="2.0.0"></town>
|
3
test/files/town/bad_size.xml
Normal file
3
test/files/town/bad_size.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<town boes="2.0.0">
|
||||
<size>1</size>
|
||||
</town>
|
4
test/files/town/bad_toplevel.xml
Normal file
4
test/files/town/bad_toplevel.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<error/>
|
||||
</town>
|
7
test/files/town/bad_wandering.xml
Normal file
7
test/files/town/bad_wandering.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<wandering>
|
||||
<creature/>
|
||||
</wandering>
|
||||
</town>
|
5
test/files/town/empty_creature.xml
Normal file
5
test/files/town/empty_creature.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<creature id='1'/>
|
||||
</town>
|
5
test/files/town/empty_item.xml
Normal file
5
test/files/town/empty_item.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<item id='1'/>
|
||||
</town>
|
5
test/files/town/empty_wandering.xml
Normal file
5
test/files/town/empty_wandering.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<wandering/>
|
||||
</town>
|
8
test/files/town/minimal.xml
Normal file
8
test/files/town/minimal.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Test Town</name>
|
||||
<bounds top='4' left='4' right='28' bottom='28'/>
|
||||
<difficulty>1</difficulty>
|
||||
<lighting>lit</lighting>
|
||||
<flags/>
|
||||
</town>
|
1
test/files/town/missing_toplevel.xml
Normal file
1
test/files/town/missing_toplevel.xml
Normal file
@@ -0,0 +1 @@
|
||||
<town boes="2.0.0"></town>
|
1
test/files/town/no_version.xml
Normal file
1
test/files/town/no_version.xml
Normal file
@@ -0,0 +1 @@
|
||||
<town></town>
|
4
test/files/town/size_not_first.xml
Normal file
4
test/files/town/size_not_first.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<town boes="2.0.0">
|
||||
<name>Hello World</name>
|
||||
<size>32</size>
|
||||
</town>
|
8
test/files/town/too_many_comments.xml
Normal file
8
test/files/town/too_many_comments.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<comment>This</comment>
|
||||
<comment>is</comment>
|
||||
<comment>a</comment>
|
||||
<comment>comment</comment>
|
||||
</town>
|
13
test/files/town/too_many_timers.xml
Normal file
13
test/files/town/too_many_timers.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<town boes="2.0.0">
|
||||
<size>32</size>
|
||||
<name>Hello World</name>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
<timer freq='10'>0</timer>
|
||||
</town>
|
Reference in New Issue
Block a user