Test cases for reading terrain, monster, and item definitions
- For monster attacks, 'd4' now means '1d4' instead of '0d4', and simple numbers without a 'd' are not accepted - Pop string path after pushing it in the shop test cases
This commit is contained in:
7
test/files/terrain/bad_abil.xml
Normal file
7
test/files/terrain/bad_abil.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<special>
|
||||
<type>bad</type>
|
||||
</special>
|
||||
</terrain>
|
||||
</terrains>
|
7
test/files/terrain/bad_abil_tag.xml
Normal file
7
test/files/terrain/bad_abil_tag.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<special>
|
||||
<bad></bad>
|
||||
</special>
|
||||
</terrain>
|
||||
</terrains>
|
5
test/files/terrain/bad_block.xml
Normal file
5
test/files/terrain/bad_block.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<blockage>bad</blockage>
|
||||
</terrain>
|
||||
</terrains>
|
1
test/files/terrain/bad_root_attr.xml
Normal file
1
test/files/terrain/bad_root_attr.xml
Normal file
@@ -0,0 +1 @@
|
||||
<terrains vers="2.0.0"></terrains>
|
5
test/files/terrain/bad_tag.xml
Normal file
5
test/files/terrain/bad_tag.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<bad></bad>
|
||||
</terrain>
|
||||
</terrains>
|
1
test/files/terrain/bad_toplevel.xml
Normal file
1
test/files/terrain/bad_toplevel.xml
Normal file
@@ -0,0 +1 @@
|
||||
<terrains boes="2.0.0"><ter></ter></terrains>
|
5
test/files/terrain/bad_trim.xml
Normal file
5
test/files/terrain/bad_trim.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<trim>bad</trim>
|
||||
</terrain>
|
||||
</terrains>
|
13
test/files/terrain/minimal.xml
Normal file
13
test/files/terrain/minimal.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<name>Test Terrain</name>
|
||||
<pic>0</pic>
|
||||
<map>0</map>
|
||||
<blockage>move</blockage>
|
||||
<trim>none</trim>
|
||||
<arena>0</arena>
|
||||
<special>
|
||||
<type>none</type>
|
||||
</special>
|
||||
</terrain>
|
||||
</terrains>
|
5
test/files/terrain/missing_abil.xml
Normal file
5
test/files/terrain/missing_abil.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<special></special>
|
||||
</terrain>
|
||||
</terrains>
|
1
test/files/terrain/missing_id.xml
Normal file
1
test/files/terrain/missing_id.xml
Normal file
@@ -0,0 +1 @@
|
||||
<terrains boes="2.0.0"><terrain></terrain></terrains>
|
1
test/files/terrain/missing_req.xml
Normal file
1
test/files/terrain/missing_req.xml
Normal file
@@ -0,0 +1 @@
|
||||
<terrains boes="2.0.0"><terrain id='0'></terrain></terrains>
|
1
test/files/terrain/no_version.xml
Normal file
1
test/files/terrain/no_version.xml
Normal file
@@ -0,0 +1 @@
|
||||
<terrains></terrains>
|
11
test/files/terrain/too_many_flags.xml
Normal file
11
test/files/terrain/too_many_flags.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<terrains boes="2.0.0">
|
||||
<terrain id='0'>
|
||||
<special>
|
||||
<type>none</type>
|
||||
<flag>0</flag>
|
||||
<flag>0</flag>
|
||||
<flag>0</flag>
|
||||
<flag>0</flag>
|
||||
</special>
|
||||
</terrain>
|
||||
</terrains>
|
Reference in New Issue
Block a user