diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-02 03:48:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-02 03:48:14 +0300 |
commit | d7f491da52e985ea50464804d342d9d45ae407f7 (patch) | |
tree | ab3c2fe76047e0fc966f24bf0de8ac159cb64b62 /data | |
parent | 359c97f1bdb7ce773c3a7cf9671ece7113685c76 (diff) | |
download | manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.tar.gz manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.tar.bz2 manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.tar.xz manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.zip |
Add unit tests for itemxmlutils.
Diffstat (limited to 'data')
-rw-r--r-- | data/test/CMakeLists.txt | 1 | ||||
-rw-r--r-- | data/test/Makefile.am | 1 | ||||
-rw-r--r-- | data/test/itemxmlutils_test.xml | 27 |
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> |