summaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
Diffstat (limited to 'test/data')
-rw-r--r--test/data/1.plist10
-rw-r--r--test/data/2.plist2
-rw-r--r--test/data/3.plist2
-rw-r--r--test/data/4.plist2
-rw-r--r--test/data/5.plist2
-rw-r--r--test/data/7.plist14
-rw-r--r--test/data/amp.plist6
-rw-r--r--test/data/cdata.plist6
-rw-r--r--test/data/data.bplistbin0 -> 3718 bytes
-rw-r--r--test/data/dictref1byte.bplistbin0 -> 50 bytes
-rw-r--r--test/data/dictref2bytes.bplistbin0 -> 52 bytes
-rw-r--r--test/data/dictref3bytes.bplistbin0 -> 54 bytes
-rw-r--r--test/data/dictref4bytes.bplistbin0 -> 56 bytes
-rw-r--r--test/data/dictref5bytes.bplistbin0 -> 58 bytes
-rw-r--r--test/data/dictref6bytes.bplistbin0 -> 60 bytes
-rw-r--r--test/data/dictref7bytes.bplistbin0 -> 62 bytes
-rw-r--r--test/data/dictref8bytes.bplistbin0 -> 64 bytes
-rw-r--r--test/data/empty_keys.plist8
-rw-r--r--test/data/entities.plist57
-rw-r--r--test/data/hex.plist5
-rw-r--r--test/data/int64_min_max.json1
-rw-r--r--test/data/invalid_tag.plist6
-rw-r--r--test/data/j1.json1
-rw-r--r--test/data/j2.json1
-rw-r--r--test/data/malformed_dict.bplistbin0 -> 77 bytes
-rw-r--r--test/data/o1.ostep45
-rw-r--r--test/data/o2.ostep17
-rw-r--r--test/data/o3.ostep16
-rw-r--r--test/data/off1byte.bplistbin0 -> 50 bytes
-rw-r--r--test/data/off2bytes.bplistbin0 -> 53 bytes
-rw-r--r--test/data/off3bytes.bplistbin0 -> 56 bytes
-rw-r--r--test/data/off4bytes.bplistbin0 -> 59 bytes
-rw-r--r--test/data/off5bytes.bplistbin0 -> 62 bytes
-rw-r--r--test/data/off6bytes.bplistbin0 -> 65 bytes
-rw-r--r--test/data/off7bytes.bplistbin0 -> 68 bytes
-rw-r--r--test/data/off8bytes.bplistbin0 -> 71 bytes
-rw-r--r--test/data/offxml.plist8
-rw-r--r--test/data/order.bplistbin0 -> 77 bytes
-rw-r--r--test/data/order.plist27
-rw-r--r--test/data/recursion.bplistbin0 -> 60 bytes
-rw-r--r--test/data/signed.bplistbin0 -> 50 bytes
-rw-r--r--test/data/signed.plist5
-rw-r--r--test/data/signedunsigned.bplistbin0 -> 113 bytes
-rw-r--r--test/data/signedunsigned.plist11
-rw-r--r--test/data/test.strings12
-rw-r--r--test/data/uid.bplistbin0 -> 43 bytes
-rw-r--r--test/data/unsigned.bplistbin0 -> 58 bytes
-rw-r--r--test/data/unsigned.plist5
48 files changed, 264 insertions, 5 deletions
diff --git a/test/data/1.plist b/test/data/1.plist
index c7135e9..82a112b 100644
--- a/test/data/1.plist
+++ b/test/data/1.plist
@@ -16,20 +16,20 @@
<string></string>
<string></string>
</array>
+ <key>Keys &amp; &quot;entities&quot;</key>
+ <string/>
<key>Boolean</key>
<false/>
<key>Another Boolean</key>
<true/>
<key>Some Int</key>
- <integer></integer>
+ <integer>0</integer>
<key>Some Real</key>
- <real></real>
+ <real>1e4</real>
<key>Some Date</key>
- <date></date>
+ <date>1970-01-01T00:00:00Z</date>
<key>Some Data</key>
<data>
</data>
- <key>Some Entities</key>
- <string>hellow world &amp; others &lt;nodes&gt; are &quot;fun!?&apos;</string>
</dict>
</plist>
diff --git a/test/data/2.plist b/test/data/2.plist
index 169b822..7c62067 100644
--- a/test/data/2.plist
+++ b/test/data/2.plist
@@ -16,6 +16,8 @@
<string>język polski</string>
<string>हिन्दी</string>
</array>
+ <key>Keys &amp; &quot;entities&quot;</key>
+ <string>hellow world &amp; others &lt;nodes&gt; are &quot;fun!?&apos;</string>
<key>Boolean</key>
<false/>
<key>Another Boolean</key>
diff --git a/test/data/3.plist b/test/data/3.plist
index 6d16191..249e7ce 100644
--- a/test/data/3.plist
+++ b/test/data/3.plist
@@ -16,6 +16,8 @@
<string>język polski</string>
<string>हिन्दी</string>
</array>
+ <key>Keys &amp; &quot;entities&quot;</key>
+ <string>hellow world &amp; others &lt;nodes&gt; are &quot;fun!?&apos;</string>
<key>Boolean</key>
<false/>
<key>Another Boolean</key>
diff --git a/test/data/4.plist b/test/data/4.plist
index de7c488..a04a292 100644
--- a/test/data/4.plist
+++ b/test/data/4.plist
@@ -16,6 +16,8 @@
<string>język polski</string>
<string>हिन्दी</string>
</array>
+ <key>Keys &amp; &quot;entities&quot;</key>
+ <string>hellow world &amp; others &lt;nodes&gt; are &quot;fun!?&apos;</string>
<key>Boolean</key>
<false/>
<key>Another Boolean</key>
diff --git a/test/data/5.plist b/test/data/5.plist
index 647c648..9dc9109 100644
--- a/test/data/5.plist
+++ b/test/data/5.plist
@@ -16,6 +16,8 @@
<string>język polski</string>
<string>हिन्दी</string>
</array>
+ <key>Keys &amp; &quot;entities&quot;</key>
+ <string>hellow world &amp; others &lt;nodes&gt; are &quot;fun!?&apos;</string>
<key>Boolean</key>
<false/>
<key>Another Boolean</key>
diff --git a/test/data/7.plist b/test/data/7.plist
new file mode 100644
index 0000000..d8b441d
--- /dev/null
+++ b/test/data/7.plist
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Time1</key>
+ <date>2010-11-12T13:14:15Z</date>
+ <key>Time2</key>
+ <date>2008-07-06T05:04:03Z</date>
+ <key>Time3</key>
+ <date>1869-01-03T08:16:32Z</date>
+ <key>Time4</key>
+ <date>2199-08-20T01:10:11Z</date>
+</dict>
+</plist>
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/data.bplist b/test/data/data.bplist
new file mode 100644
index 0000000..955993f
--- /dev/null
+++ b/test/data/data.bplist
Binary files differ
diff --git a/test/data/dictref1byte.bplist b/test/data/dictref1byte.bplist
new file mode 100644
index 0000000..c33d70b
--- /dev/null
+++ b/test/data/dictref1byte.bplist
Binary files differ
diff --git a/test/data/dictref2bytes.bplist b/test/data/dictref2bytes.bplist
new file mode 100644
index 0000000..2a5225f
--- /dev/null
+++ b/test/data/dictref2bytes.bplist
Binary files differ
diff --git a/test/data/dictref3bytes.bplist b/test/data/dictref3bytes.bplist
new file mode 100644
index 0000000..fb34258
--- /dev/null
+++ b/test/data/dictref3bytes.bplist
Binary files differ
diff --git a/test/data/dictref4bytes.bplist b/test/data/dictref4bytes.bplist
new file mode 100644
index 0000000..5845107
--- /dev/null
+++ b/test/data/dictref4bytes.bplist
Binary files differ
diff --git a/test/data/dictref5bytes.bplist b/test/data/dictref5bytes.bplist
new file mode 100644
index 0000000..6ced9de
--- /dev/null
+++ b/test/data/dictref5bytes.bplist
Binary files differ
diff --git a/test/data/dictref6bytes.bplist b/test/data/dictref6bytes.bplist
new file mode 100644
index 0000000..2ed5f34
--- /dev/null
+++ b/test/data/dictref6bytes.bplist
Binary files differ
diff --git a/test/data/dictref7bytes.bplist b/test/data/dictref7bytes.bplist
new file mode 100644
index 0000000..cbb9368
--- /dev/null
+++ b/test/data/dictref7bytes.bplist
Binary files differ
diff --git a/test/data/dictref8bytes.bplist b/test/data/dictref8bytes.bplist
new file mode 100644
index 0000000..ffb4292
--- /dev/null
+++ b/test/data/dictref8bytes.bplist
Binary files differ
diff --git a/test/data/empty_keys.plist b/test/data/empty_keys.plist
new file mode 100644
index 0000000..a0107b4
--- /dev/null
+++ b/test/data/empty_keys.plist
@@ -0,0 +1,8 @@
+<plist version="1.0">
+<dict>
+ <key></key>
+ <string>empty key</string>
+ <key><!-- comment --></key>
+ <string>empty key with comment</string>
+</dict>
+</plist>
diff --git a/test/data/entities.plist b/test/data/entities.plist
new file mode 100644
index 0000000..d7655d6
--- /dev/null
+++ b/test/data/entities.plist
@@ -0,0 +1,57 @@
+<plist version="1.0">
+<dict>
+ <key>some test entitites</key>
+ <dict>
+ <key>copyright</key>
+ <string>&#169;</string>
+ <key>multiple entitites</key>
+ <string>&#x2F20;&#x2F21;&#x2F22;</string>
+ <key>multiple entitites with characters inbetween</key>
+ <string>a&#x2F23;b&#x2F24;c&#x2F25;d</string>
+ </dict>
+ <key>one byte entity</key>
+ <dict>
+ <key>one byte entity</key>
+ <string>&#64;</string>
+ <key>one byte entity with text after</key>
+ <string>&#x40;z</string>
+ <key>one byte entity with text before</key>
+ <string>a&#x40;</string>
+ <key>one byte entity with text before &amp; after</key>
+ <string>a&#64;z</string>
+ </dict>
+ <key>two-byte utf-8</key>
+ <dict>
+ <key>two-byte utf-8</key>
+ <string>&#xC4;</string>
+ <key>two-byte utf-8 with text after</key>
+ <string>&#xCB;yz</string>
+ <key>two-byte utf-8 with text before</key>
+ <string>ab&#xD6;</string>
+ <key>two-byte utf-8 with text before &amp; after</key>
+ <string>ab&#xDC;yz</string>
+ </dict>
+ <key>three byte utf-8</key>
+ <dict>
+ <key>three byte utf-8</key>
+ <string>&#xFFE0;</string>
+ <key>three byte utf-8 with text after</key>
+ <string>&#65505;xyz</string>
+ <key>three byte utf-8 with text before</key>
+ <string>abc&#xFFE5;</string>
+ <key>three byte utf-8 with text before &amp; after</key>
+ <string>abc&#65510;xyz</string>
+ </dict>
+ <key>four byte utf-8</key>
+ <dict>
+ <key>four byte utf-8</key>
+ <string>&#x1D562;</string>
+ <key>four byte utf-8 with text after</key>
+ <string>&#x1D563;wxyz</string>
+ <key>four byte utf-8 with text before</key>
+ <string>abcd&#x1D564;</string>
+ <key>four byte utf-8 with text before &amp; after</key>
+ <string>abcd&#x1D565;wxyz</string>
+ </dict>
+</dict>
+</plist>
diff --git a/test/data/hex.plist b/test/data/hex.plist
new file mode 100644
index 0000000..ae2d2b0
--- /dev/null
+++ b/test/data/hex.plist
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<integer>0x73709551615</integer>
+</plist>
diff --git a/test/data/int64_min_max.json b/test/data/int64_min_max.json
new file mode 100644
index 0000000..7707090
--- /dev/null
+++ b/test/data/int64_min_max.json
@@ -0,0 +1 @@
+{"INT64_MIN":-9223372036854775808,"INT64_MAX":9223372036854775807} \ No newline at end of file
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>
diff --git a/test/data/j1.json b/test/data/j1.json
new file mode 100644
index 0000000..2fe564d
--- /dev/null
+++ b/test/data/j1.json
@@ -0,0 +1 @@
+{"test":[1,1],"foo":[[-1337],[1],[1],[1],[[1],[1],[1],[1],[[1],[1],[1],[1]]]],"more":{"a":"yo","b":[{"c":0.25},{"a":"yo","b":[{"c":0.25},{"a":"yo","b":[{"c":-0.25}]}]}]}}
diff --git a/test/data/j2.json b/test/data/j2.json
new file mode 100644
index 0000000..9d1210e
--- /dev/null
+++ b/test/data/j2.json
@@ -0,0 +1 @@
+{"Some ASCII string":"Test ASCII String","Some UTF8 strings":["àéèçù","日本語","汉语/漢語","한국어/조선말","русский язык","الْعَرَبيّة","עִבְרִית","język polski","हिन्दी"],"Keys & \"entities\"":"hellow world & others <nodes> are \"fun!?'","Boolean":false,"Another Boolean":true,"Some Int":32434543632,"Some String with Unicode entity":"Yeah check this: \u1234 !!!"} \ No newline at end of file
diff --git a/test/data/malformed_dict.bplist b/test/data/malformed_dict.bplist
new file mode 100644
index 0000000..0de4cd7
--- /dev/null
+++ b/test/data/malformed_dict.bplist
Binary files differ
diff --git a/test/data/o1.ostep b/test/data/o1.ostep
new file mode 100644
index 0000000..074406a
--- /dev/null
+++ b/test/data/o1.ostep
@@ -0,0 +1,45 @@
+{
+ "test" = (1,1);
+ foo = (
+ (-1337),
+ (1),
+ (1),
+ (1),
+ (
+ (1),
+ (1),
+ (1),
+ (1),
+ (
+ (1),
+ (1),
+ (1),
+ (1)
+ )
+ )
+ );
+ more = {
+ "a" = "yo";
+ "b" = (
+ {
+ "c" = 0.25;
+ },
+ {
+ "a" = "yo";
+ "b" = (
+ {
+ "c" = 0.25;
+ },
+ {
+ "a" = "yo";
+ "b" = (
+ {
+ "cd" = -0.25;
+ }
+ );
+ }
+ );
+ }
+ );
+ };
+}
diff --git a/test/data/o2.ostep b/test/data/o2.ostep
new file mode 100644
index 0000000..5f5f3c2
--- /dev/null
+++ b/test/data/o2.ostep
@@ -0,0 +1,17 @@
+{
+ "Some ASCII string" = "Test ASCII String";
+ "Some UTF8 strings" = (
+ "àéèçù",
+ "日本語",
+ "汉语/漢語",
+ "한국어/조선말",
+ "русский язык",
+ "الْعَرَبيّة",
+ "עִבְרִית",
+ "język polski",
+ "हिन्दी",
+ );
+ "Keys & \"entities\"" = "hello world & others <nodes> are fun!?'";
+ "Some Int" = 32434543632;
+ "Some String with Unicode entity" = "Yeah check this: \U1234 !!!";
+}
diff --git a/test/data/o3.ostep b/test/data/o3.ostep
new file mode 100644
index 0000000..b80444d
--- /dev/null
+++ b/test/data/o3.ostep
@@ -0,0 +1,16 @@
+(
+ {
+ AFirstKey = "A First Value";
+ ASecondKey = "A Second Value";
+ // this is the last entry
+ },
+ /*{
+ BFirstKey = "B First Value";
+ BSecondKey = "B Second Value";
+ },*/
+ {
+ CFirstKey = "C First Value"; // "C First Unused Value";
+ // now here is another comment
+ CSecondKey = /* "C Second Value";*/ "C Second Corrected Value";
+ }
+)
diff --git a/test/data/off1byte.bplist b/test/data/off1byte.bplist
new file mode 100644
index 0000000..c33d70b
--- /dev/null
+++ b/test/data/off1byte.bplist
Binary files differ
diff --git a/test/data/off2bytes.bplist b/test/data/off2bytes.bplist
new file mode 100644
index 0000000..f080738
--- /dev/null
+++ b/test/data/off2bytes.bplist
Binary files differ
diff --git a/test/data/off3bytes.bplist b/test/data/off3bytes.bplist
new file mode 100644
index 0000000..a2f926b
--- /dev/null
+++ b/test/data/off3bytes.bplist
Binary files differ
diff --git a/test/data/off4bytes.bplist b/test/data/off4bytes.bplist
new file mode 100644
index 0000000..35897be
--- /dev/null
+++ b/test/data/off4bytes.bplist
Binary files differ
diff --git a/test/data/off5bytes.bplist b/test/data/off5bytes.bplist
new file mode 100644
index 0000000..9df03cd
--- /dev/null
+++ b/test/data/off5bytes.bplist
Binary files differ
diff --git a/test/data/off6bytes.bplist b/test/data/off6bytes.bplist
new file mode 100644
index 0000000..3d78a47
--- /dev/null
+++ b/test/data/off6bytes.bplist
Binary files differ
diff --git a/test/data/off7bytes.bplist b/test/data/off7bytes.bplist
new file mode 100644
index 0000000..150c277
--- /dev/null
+++ b/test/data/off7bytes.bplist
Binary files differ
diff --git a/test/data/off8bytes.bplist b/test/data/off8bytes.bplist
new file mode 100644
index 0000000..f01114e
--- /dev/null
+++ b/test/data/off8bytes.bplist
Binary files differ
diff --git a/test/data/offxml.plist b/test/data/offxml.plist
new file mode 100644
index 0000000..c3c1e10
--- /dev/null
+++ b/test/data/offxml.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>A</key>
+ <string>B</string>
+</dict>
+</plist>
diff --git a/test/data/order.bplist b/test/data/order.bplist
new file mode 100644
index 0000000..5ea86f8
--- /dev/null
+++ b/test/data/order.bplist
Binary files differ
diff --git a/test/data/order.plist b/test/data/order.plist
new file mode 100644
index 0000000..b2cbdcb
--- /dev/null
+++ b/test/data/order.plist
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>test</key>
+ <array>
+ <integer>1</integer>
+ <integer>1</integer>
+ </array>
+ <key>foo</key>
+ <array>
+ <array>
+ <integer>1</integer>
+ </array>
+ <dict>
+ <key>test</key>
+ <string>foo</string>
+ </dict>
+ <array>
+ <integer>1</integer>
+ </array>
+ <array>
+ <integer>1</integer>
+ </array>
+ </array>
+</dict>
+</plist>
diff --git a/test/data/recursion.bplist b/test/data/recursion.bplist
new file mode 100644
index 0000000..3f4b42a
--- /dev/null
+++ b/test/data/recursion.bplist
Binary files differ
diff --git a/test/data/signed.bplist b/test/data/signed.bplist
new file mode 100644
index 0000000..89bf362
--- /dev/null
+++ b/test/data/signed.bplist
Binary files differ
diff --git a/test/data/signed.plist b/test/data/signed.plist
new file mode 100644
index 0000000..c7d2991
--- /dev/null
+++ b/test/data/signed.plist
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<integer>-1</integer>
+</plist>
diff --git a/test/data/signedunsigned.bplist b/test/data/signedunsigned.bplist
new file mode 100644
index 0000000..f361063
--- /dev/null
+++ b/test/data/signedunsigned.bplist
Binary files differ
diff --git a/test/data/signedunsigned.plist b/test/data/signedunsigned.plist
new file mode 100644
index 0000000..2942529
--- /dev/null
+++ b/test/data/signedunsigned.plist
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<array>
+ <integer>-1</integer>
+ <integer>18446744073709551615</integer>
+ <integer>9223372036854775807</integer>
+ <integer>-9223372036854775808</integer>
+ <integer>9223372036854775808</integer>
+</array>
+</plist>
diff --git a/test/data/test.strings b/test/data/test.strings
new file mode 100644
index 0000000..6d6ee43
--- /dev/null
+++ b/test/data/test.strings
@@ -0,0 +1,12 @@
+STRINGS_ENTRY = "Whatever";
+FOO = "BAR";
+BAR = Foo;
+ENTRY0 = "àéèçù";
+ENTRY1 = "日本語";
+ENTRY2 = "汉语/漢語";
+ENTRY3 = "한국어/조선말";
+ENTRY4 = "русский язык";
+ENTRY5 = "الْعَرَبيّة";
+ENTRY6 = "עִבְרִית";
+ENTRY7 = "język polski";
+ENTRY8 = "हिन्दी";
diff --git a/test/data/uid.bplist b/test/data/uid.bplist
new file mode 100644
index 0000000..e1fc6f8
--- /dev/null
+++ b/test/data/uid.bplist
Binary files differ
diff --git a/test/data/unsigned.bplist b/test/data/unsigned.bplist
new file mode 100644
index 0000000..2b0a807
--- /dev/null
+++ b/test/data/unsigned.bplist
Binary files differ
diff --git a/test/data/unsigned.plist b/test/data/unsigned.plist
new file mode 100644
index 0000000..f08d1b7
--- /dev/null
+++ b/test/data/unsigned.plist
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<integer>18446744073709551615</integer>
+</plist>