diff options
Diffstat (limited to 'test/data')
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 & "entities"</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 & others <nodes> are "fun!?'</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 & "entities"</key> + <string>hellow world & others <nodes> are "fun!?'</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 & "entities"</key> + <string>hellow world & others <nodes> are "fun!?'</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 & "entities"</key> + <string>hellow world & others <nodes> are "fun!?'</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 & "entities"</key> + <string>hellow world & others <nodes> are "fun!?'</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&</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 Binary files differnew file mode 100644 index 0000000..955993f --- /dev/null +++ b/test/data/data.bplist diff --git a/test/data/dictref1byte.bplist b/test/data/dictref1byte.bplist Binary files differnew file mode 100644 index 0000000..c33d70b --- /dev/null +++ b/test/data/dictref1byte.bplist diff --git a/test/data/dictref2bytes.bplist b/test/data/dictref2bytes.bplist Binary files differnew file mode 100644 index 0000000..2a5225f --- /dev/null +++ b/test/data/dictref2bytes.bplist diff --git a/test/data/dictref3bytes.bplist b/test/data/dictref3bytes.bplist Binary files differnew file mode 100644 index 0000000..fb34258 --- /dev/null +++ b/test/data/dictref3bytes.bplist diff --git a/test/data/dictref4bytes.bplist b/test/data/dictref4bytes.bplist Binary files differnew file mode 100644 index 0000000..5845107 --- /dev/null +++ b/test/data/dictref4bytes.bplist diff --git a/test/data/dictref5bytes.bplist b/test/data/dictref5bytes.bplist Binary files differnew file mode 100644 index 0000000..6ced9de --- /dev/null +++ b/test/data/dictref5bytes.bplist diff --git a/test/data/dictref6bytes.bplist b/test/data/dictref6bytes.bplist Binary files differnew file mode 100644 index 0000000..2ed5f34 --- /dev/null +++ b/test/data/dictref6bytes.bplist diff --git a/test/data/dictref7bytes.bplist b/test/data/dictref7bytes.bplist Binary files differnew file mode 100644 index 0000000..cbb9368 --- /dev/null +++ b/test/data/dictref7bytes.bplist diff --git a/test/data/dictref8bytes.bplist b/test/data/dictref8bytes.bplist Binary files differnew file mode 100644 index 0000000..ffb4292 --- /dev/null +++ b/test/data/dictref8bytes.bplist 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>©</string> + <key>multiple entitites</key> + <string>⼠⼡⼢</string> + <key>multiple entitites with characters inbetween</key> + <string>a⼣b⼤c⼥d</string> + </dict> + <key>one byte entity</key> + <dict> + <key>one byte entity</key> + <string>@</string> + <key>one byte entity with text after</key> + <string>@z</string> + <key>one byte entity with text before</key> + <string>a@</string> + <key>one byte entity with text before & after</key> + <string>a@z</string> + </dict> + <key>two-byte utf-8</key> + <dict> + <key>two-byte utf-8</key> + <string>Ä</string> + <key>two-byte utf-8 with text after</key> + <string>Ëyz</string> + <key>two-byte utf-8 with text before</key> + <string>abÖ</string> + <key>two-byte utf-8 with text before & after</key> + <string>abÜyz</string> + </dict> + <key>three byte utf-8</key> + <dict> + <key>three byte utf-8</key> + <string>¢</string> + <key>three byte utf-8 with text after</key> + <string>£xyz</string> + <key>three byte utf-8 with text before</key> + <string>abc¥</string> + <key>three byte utf-8 with text before & after</key> + <string>abc₩xyz</string> + </dict> + <key>four byte utf-8</key> + <dict> + <key>four byte utf-8</key> + <string>𝕢</string> + <key>four byte utf-8 with text after</key> + <string>𝕣wxyz</string> + <key>four byte utf-8 with text before</key> + <string>abcd𝕤</string> + <key>four byte utf-8 with text before & after</key> + <string>abcd𝕥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 Binary files differnew file mode 100644 index 0000000..0de4cd7 --- /dev/null +++ b/test/data/malformed_dict.bplist 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 Binary files differnew file mode 100644 index 0000000..c33d70b --- /dev/null +++ b/test/data/off1byte.bplist diff --git a/test/data/off2bytes.bplist b/test/data/off2bytes.bplist Binary files differnew file mode 100644 index 0000000..f080738 --- /dev/null +++ b/test/data/off2bytes.bplist diff --git a/test/data/off3bytes.bplist b/test/data/off3bytes.bplist Binary files differnew file mode 100644 index 0000000..a2f926b --- /dev/null +++ b/test/data/off3bytes.bplist diff --git a/test/data/off4bytes.bplist b/test/data/off4bytes.bplist Binary files differnew file mode 100644 index 0000000..35897be --- /dev/null +++ b/test/data/off4bytes.bplist diff --git a/test/data/off5bytes.bplist b/test/data/off5bytes.bplist Binary files differnew file mode 100644 index 0000000..9df03cd --- /dev/null +++ b/test/data/off5bytes.bplist diff --git a/test/data/off6bytes.bplist b/test/data/off6bytes.bplist Binary files differnew file mode 100644 index 0000000..3d78a47 --- /dev/null +++ b/test/data/off6bytes.bplist diff --git a/test/data/off7bytes.bplist b/test/data/off7bytes.bplist Binary files differnew file mode 100644 index 0000000..150c277 --- /dev/null +++ b/test/data/off7bytes.bplist diff --git a/test/data/off8bytes.bplist b/test/data/off8bytes.bplist Binary files differnew file mode 100644 index 0000000..f01114e --- /dev/null +++ b/test/data/off8bytes.bplist 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 Binary files differnew file mode 100644 index 0000000..5ea86f8 --- /dev/null +++ b/test/data/order.bplist 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 Binary files differnew file mode 100644 index 0000000..3f4b42a --- /dev/null +++ b/test/data/recursion.bplist diff --git a/test/data/signed.bplist b/test/data/signed.bplist Binary files differnew file mode 100644 index 0000000..89bf362 --- /dev/null +++ b/test/data/signed.bplist 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 Binary files differnew file mode 100644 index 0000000..f361063 --- /dev/null +++ b/test/data/signedunsigned.bplist 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 Binary files differnew file mode 100644 index 0000000..e1fc6f8 --- /dev/null +++ b/test/data/uid.bplist diff --git a/test/data/unsigned.bplist b/test/data/unsigned.bplist Binary files differnew file mode 100644 index 0000000..2b0a807 --- /dev/null +++ b/test/data/unsigned.bplist 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> |
