summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/test/CMakeLists.txt1
-rw-r--r--data/test/Makefile.am1
-rw-r--r--data/test/itemxmlutils_test.xml27
3 files changed, 29 insertions, 0 deletions
diff --git a/data/test/CMakeLists.txt b/data/test/CMakeLists.txt
index 051d2beb8..e40ce54b9 100644
--- a/data/test/CMakeLists.txt
+++ b/data/test/CMakeLists.txt
@@ -7,6 +7,7 @@ SET(FILES
equipmentwindow.xml
hide.png
items.xml
+ itemxmlutils_test.xml
palette.gpl
paths.xml
quests.xml
diff --git a/data/test/Makefile.am b/data/test/Makefile.am
index 0fb49e6a1..f3a8bd4a1 100644
--- a/data/test/Makefile.am
+++ b/data/test/Makefile.am
@@ -11,6 +11,7 @@ test_DATA = \
equipmentwindow.xml \
hide.png \
items.xml \
+ itemxmlutils_test.xml \
palette.gpl \
paths.xml \
quests.xml \
diff --git a/data/test/itemxmlutils_test.xml b/data/test/itemxmlutils_test.xml
new file mode 100644
index 000000000..f0c3c5c96
--- /dev/null
+++ b/data/test/itemxmlutils_test.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Authors: 4144
+Copyright (C) 2018 ManaPlus developers -->
+
+<root>
+ <empty1
+ test1="1"
+ test2="2"
+ test3="3"
+ />
+ <empty2 />
+ <test1
+ hp="20"
+ other="3"
+ />
+ <test2
+ hp="10"
+ weight="2"
+ other="3"
+ />
+ <test3
+ hp="10"
+ weight="2"
+ other="3"
+ str="1"
+ />
+</root>