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/items/bad_abil.xml
Normal file
7
test/files/items/bad_abil.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<ability>
|
||||
<type>bad</type>
|
||||
</ability>
|
||||
</item>
|
||||
</items>
|
7
test/files/items/bad_abil_tag.xml
Normal file
7
test/files/items/bad_abil_tag.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<ability>
|
||||
<bad></bad>
|
||||
</ability>
|
||||
</item>
|
||||
</items>
|
7
test/files/items/bad_prop.xml
Normal file
7
test/files/items/bad_prop.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<properties>
|
||||
<bad></bad>
|
||||
</properties>
|
||||
</item>
|
||||
</items>
|
1
test/files/items/bad_root_attr.xml
Normal file
1
test/files/items/bad_root_attr.xml
Normal file
@@ -0,0 +1 @@
|
||||
<items vers="2.0.0"></items>
|
5
test/files/items/bad_tag.xml
Normal file
5
test/files/items/bad_tag.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<bad></bad>>
|
||||
</item>
|
||||
</items>
|
1
test/files/items/bad_toplevel.xml
Normal file
1
test/files/items/bad_toplevel.xml
Normal file
@@ -0,0 +1 @@
|
||||
<items boes="2.0.0"><obj></obj></items>
|
5
test/files/items/bad_type.xml
Normal file
5
test/files/items/bad_type.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<variety>bad</variety>
|
||||
</item>
|
||||
</items>
|
7
test/files/items/bad_use.xml
Normal file
7
test/files/items/bad_use.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<ability>
|
||||
<use-flag>bad</use-flag>
|
||||
</ability>
|
||||
</item>
|
||||
</items>
|
5
test/files/items/bad_weapon.xml
Normal file
5
test/files/items/bad_weapon.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<weapon-type>bad</weapon-type>
|
||||
</item>
|
||||
</items>
|
11
test/files/items/minimal.xml
Normal file
11
test/files/items/minimal.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<variety>weapon-1hand</variety>
|
||||
<level>3</level>
|
||||
<pic>0</pic>
|
||||
<value>100</value>
|
||||
<weight>10</weight>
|
||||
<full-name>Test Sword</full-name>
|
||||
<name>Sword</name>
|
||||
</item>
|
||||
</items>
|
5
test/files/items/missing_abil.xml
Normal file
5
test/files/items/missing_abil.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<items boes="2.0.0">
|
||||
<item id='0'>
|
||||
<ability></ability>
|
||||
</item>
|
||||
</items>
|
1
test/files/items/missing_id.xml
Normal file
1
test/files/items/missing_id.xml
Normal file
@@ -0,0 +1 @@
|
||||
<items boes="2.0.0"><item></item></items>
|
1
test/files/items/missing_req.xml
Normal file
1
test/files/items/missing_req.xml
Normal file
@@ -0,0 +1 @@
|
||||
<items boes="2.0.0"><item id='0'></item></items>
|
1
test/files/items/no_version.xml
Normal file
1
test/files/items/no_version.xml
Normal file
@@ -0,0 +1 @@
|
||||
<items></items>
|
Reference in New Issue
Block a user