about summary refs log tree commit diff
path: root/lib/tests/test-to-plist-expected.plist
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2023-05-05 21:15:23 +0200
committerGitHub <noreply@github.com>2023-05-05 21:15:23 +0200
commite31c8b22ddb121f8840e2c94fa25557b572e3bb5 (patch)
treebcb7505eec51480dfee58ae2a54203bd6954a969 /lib/tests/test-to-plist-expected.plist
parent7d76bc7e818a419282c6502993864eb2ae8e07a1 (diff)
parente932e98437ea9184365233bad439860c795f65a1 (diff)
downloadnixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.tar
nixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.tar.gz
nixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.tar.bz2
nixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.tar.lz
nixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.tar.xz
nixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.tar.zst
nixlib-e31c8b22ddb121f8840e2c94fa25557b572e3bb5.zip
Merge pull request #223407 from AngryAnt/toplist-path
lib.toPlist: Add support for path values
Diffstat (limited to 'lib/tests/test-to-plist-expected.plist')
-rw-r--r--lib/tests/test-to-plist-expected.plist46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/tests/test-to-plist-expected.plist b/lib/tests/test-to-plist-expected.plist
new file mode 100644
index 000000000000..df0528a60767
--- /dev/null
+++ b/lib/tests/test-to-plist-expected.plist
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>nested</key>
+	<dict>
+		<key>values</key>
+		<dict>
+			<key>attrs</key>
+			<dict>
+				<key>foo b/ar</key>
+				<string>baz</string>
+			</dict>
+			<key>bool</key>
+			<true/>
+			<key>emptyattrs</key>
+			<dict>
+
+			</dict>
+			<key>emptylist</key>
+			<array>
+
+			</array>
+			<key>emptystring</key>
+			<string></string>
+			<key>float</key>
+			<real>0.133700</real>
+			<key>int</key>
+			<integer>42</integer>
+			<key>list</key>
+			<array>
+				<integer>3</integer>
+				<integer>4</integer>
+				<string>test</string>
+			</array>
+			<key>newlinestring</key>
+			<string>
+</string>
+			<key>path</key>
+			<string>/foo</string>
+			<key>string</key>
+			<string>fn${o}"r\d</string>
+		</dict>
+	</dict>
+</dict>
+</plist>
\ No newline at end of file