Commit 55280155 authored by Nikias Bassen's avatar Nikias Bassen

test: Add new test case for entities

parent 1cdb8885
......@@ -31,9 +31,10 @@ TESTS = \
hex.test \
order.test \
recursion.test \
entities.test \
malformed_dict.test
EXTRA_DIST = $(TESTS) data/1.plist data/2.plist data/3.plist data/4.plist data/5.plist data/6.plist data/7.plist data/signed.plist data/signed.bplist data/unsigned.plist data/unsigned.bplist data/hex.plist data/order.bplist data/recursion.bplist data/malformed_dict.bplist
EXTRA_DIST = $(TESTS) data/1.plist data/2.plist data/3.plist data/4.plist data/5.plist data/6.plist data/7.plist data/signed.plist data/signed.bplist data/unsigned.plist data/unsigned.bplist data/hex.plist data/order.bplist data/recursion.bplist data/entities.plist data/malformed_dict.bplist
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) top_builddir=$(top_builddir)
......
<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>
## -*- sh -*-
set -e
DATASRC=$top_srcdir/test/data
TESTFILE=entities.plist
DATAIN0=$DATASRC/$TESTFILE
DATAOUT0=$top_builddir/test/data/$TESTFILE.bin
$top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
$top_builddir/test/plist_cmp $DATAIN0 $DATAOUT0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment