diff options
| author | 2023-01-08 05:29:22 +0100 | |
|---|---|---|
| committer | 2023-01-08 05:29:22 +0100 | |
| commit | 60d291941fadb72b66d11502710add5899e21a2d (patch) | |
| tree | a7ecccf74cd8fb7e2596fd3531fd9cccefa39dcd /test/data | |
| parent | 3f9360e33c13c22648036da42e36f8668e29fb60 (diff) | |
| download | libplist-60d291941fadb72b66d11502710add5899e21a2d.tar.gz libplist-60d291941fadb72b66d11502710add5899e21a2d.tar.bz2 | |
Add support for OpenStep plist format
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/o1.ostep | 45 | ||||
| -rw-r--r-- | test/data/o2.ostep | 17 | ||||
| -rw-r--r-- | test/data/o3.ostep | 16 | ||||
| -rw-r--r-- | test/data/test.strings | 12 |
4 files changed, 90 insertions, 0 deletions
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 @@ | |||
| 1 | { | ||
| 2 | "test" = (1,1); | ||
| 3 | foo = ( | ||
| 4 | (-1337), | ||
| 5 | (1), | ||
| 6 | (1), | ||
| 7 | (1), | ||
| 8 | ( | ||
| 9 | (1), | ||
| 10 | (1), | ||
| 11 | (1), | ||
| 12 | (1), | ||
| 13 | ( | ||
| 14 | (1), | ||
| 15 | (1), | ||
| 16 | (1), | ||
| 17 | (1) | ||
| 18 | ) | ||
| 19 | ) | ||
| 20 | ); | ||
| 21 | more = { | ||
| 22 | "a" = "yo"; | ||
| 23 | "b" = ( | ||
| 24 | { | ||
| 25 | "c" = 0.25; | ||
| 26 | }, | ||
| 27 | { | ||
| 28 | "a" = "yo"; | ||
| 29 | "b" = ( | ||
| 30 | { | ||
| 31 | "c" = 0.25; | ||
| 32 | }, | ||
| 33 | { | ||
| 34 | "a" = "yo"; | ||
| 35 | "b" = ( | ||
| 36 | { | ||
| 37 | "cd" = -0.25; | ||
| 38 | } | ||
| 39 | ); | ||
| 40 | } | ||
| 41 | ); | ||
| 42 | } | ||
| 43 | ); | ||
| 44 | }; | ||
| 45 | } | ||
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 @@ | |||
| 1 | { | ||
| 2 | "Some ASCII string" = "Test ASCII String"; | ||
| 3 | "Some UTF8 strings" = ( | ||
| 4 | "àéèçù", | ||
| 5 | "日本語", | ||
| 6 | "汉语/漢語", | ||
| 7 | "한국어/조선말", | ||
| 8 | "русский язык", | ||
| 9 | "الْعَرَبيّة", | ||
| 10 | "עִבְרִית", | ||
| 11 | "język polski", | ||
| 12 | "हिन्दी", | ||
| 13 | ); | ||
| 14 | "Keys & \"entities\"" = "hello world & others <nodes> are fun!?'"; | ||
| 15 | "Some Int" = 32434543632; | ||
| 16 | "Some String with Unicode entity" = "Yeah check this: \U1234 !!!"; | ||
| 17 | } | ||
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 @@ | |||
| 1 | ( | ||
| 2 | { | ||
| 3 | AFirstKey = "A First Value"; | ||
| 4 | ASecondKey = "A Second Value"; | ||
| 5 | // this is the last entry | ||
| 6 | }, | ||
| 7 | /*{ | ||
| 8 | BFirstKey = "B First Value"; | ||
| 9 | BSecondKey = "B Second Value"; | ||
| 10 | },*/ | ||
| 11 | { | ||
| 12 | CFirstKey = "C First Value"; // "C First Unused Value"; | ||
| 13 | // now here is another comment | ||
| 14 | CSecondKey = /* "C Second Value";*/ "C Second Corrected Value"; | ||
| 15 | } | ||
| 16 | ) | ||
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 @@ | |||
| 1 | STRINGS_ENTRY = "Whatever"; | ||
| 2 | FOO = "BAR"; | ||
| 3 | BAR = Foo; | ||
| 4 | ENTRY0 = "àéèçù"; | ||
| 5 | ENTRY1 = "日本語"; | ||
| 6 | ENTRY2 = "汉语/漢語"; | ||
| 7 | ENTRY3 = "한국어/조선말"; | ||
| 8 | ENTRY4 = "русский язык"; | ||
| 9 | ENTRY5 = "الْعَرَبيّة"; | ||
| 10 | ENTRY6 = "עִבְרִית"; | ||
| 11 | ENTRY7 = "język polski"; | ||
| 12 | ENTRY8 = "हिन्दी"; | ||
