summaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-01-02 02:29:35 +0100
committerGravatar Nikias Bassen2017-01-02 02:29:35 +0100
commit9950acbecda1b1bdf567e2e5efae84103c105a2d (patch)
tree40a46b8c0f657ac8f2261930b3c201514eb7cf32 /test/data
parent9f03f8aabcd036c1a97d9cfb6330409127202102 (diff)
downloadlibplist-9950acbecda1b1bdf567e2e5efae84103c105a2d.tar.gz
libplist-9950acbecda1b1bdf567e2e5efae84103c105a2d.tar.bz2
test: Add some more test cases for various valid and invalid content
Diffstat (limited to 'test/data')
-rw-r--r--test/data/amp.plist6
-rw-r--r--test/data/cdata.plist6
-rw-r--r--test/data/invalid_tag.plist6
3 files changed, 18 insertions, 0 deletions
diff --git a/test/data/amp.plist b/test/data/amp.plist
new file mode 100644
index 0000000..ce9e7ac
--- /dev/null
+++ b/test/data/amp.plist
@@ -0,0 +1,6 @@
+<plist version="1.0">
+<dict>
+ <key>test&amp</key>
+ <string>value</string>
+</dict>
+</plist>
diff --git a/test/data/cdata.plist b/test/data/cdata.plist
new file mode 100644
index 0000000..dcd015f
--- /dev/null
+++ b/test/data/cdata.plist
@@ -0,0 +1,6 @@
+<plist version="1.0">
+<dict>
+ <key><![CDATA[cdata&key]]></key>
+ <string>string with cdata content: <![CDATA[ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~]]> !!!</string>
+</dict>
+</plist>
diff --git a/test/data/invalid_tag.plist b/test/data/invalid_tag.plist
new file mode 100644
index 0000000..feb770f
--- /dev/null
+++ b/test/data/invalid_tag.plist
@@ -0,0 +1,6 @@
+<plist version="1.0">
+<dict>
+ <key>test<!test></key>
+ <string>value</string>
+</dict>
+</plist>