aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.native6
-rw-r--r--tests/writer.docbook60
-rw-r--r--tests/writer.native6
3 files changed, 36 insertions, 36 deletions
diff --git a/tests/testsuite.native b/tests/testsuite.native
index 44c133311..683b2c550 100644
--- a/tests/testsuite.native
+++ b/tests/testsuite.native
@@ -240,8 +240,8 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
, [ Plain [Str "section:",Space,Str "\167"] ]
, [ Plain [Str "set",Space,Str "membership:",Space,Str "\8712"] ]
, [ Plain [Str "copyright:",Space,Str "\169"] ] ]
-, Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name",Str "."]
-, Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it",Str "."]
+, Para [Str "AT",Str "&",Str "T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name",Str "."]
+, Para [Str "AT",Str "&",Str "T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it",Str "."]
, Para [Str "This",Space,Str "&",Space,Str "that",Str "."]
, Para [Str "4",Space,Str "<",Space,Str "5",Str "."]
, Para [Str "6",Space,Str ">",Space,Str "5",Str "."]
@@ -294,7 +294,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
, Key [Str "bar"] (Src "/url/" "Title with &quot;quotes&quot; inside")
, Header 2 [Str "With",Space,Str "ampersands"]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Link [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] (Ref [Str "1"]),Str "."]
-, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT&T"] (Ref [Str "2"]),Str "."]
+, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT",Str "&",Str "T"] (Ref [Str "2"]),Str "."]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] (Src "/script?foo=1&bar=2" ""),Str "."]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] (Src "/script?foo=1&bar=2" ""),Str "."]
, Key [Str "1"] (Src "http://example.com/?foo=1&bar=2" "")
diff --git a/tests/writer.docbook b/tests/writer.docbook
index 1c5965cb3..600c52d6a 100644
--- a/tests/writer.docbook
+++ b/tests/writer.docbook
@@ -89,7 +89,7 @@
</para>
<screen>
sub status {
- print &quot;working&quot;;
+ print &#34;working&#34;;
}
</screen>
<para>
@@ -122,7 +122,7 @@ sub status {
</blockquote>
</blockquote>
<para>
- This should not be a block quote: 2 &gt; 1.
+ This should not be a block quote: 2 &#62; 1.
</para>
<para>
Box-style:
@@ -133,7 +133,7 @@ sub status {
</para>
<screen>
sub status {
- print &quot;working&quot;;
+ print &#34;working&#34;;
}
</screen>
</blockquote>
@@ -177,7 +177,7 @@ sub status {
---- (should be four hyphens)
sub status {
- print &quot;working&quot;;
+ print &#34;working&#34;;
}
this code block is indented by one tab
@@ -188,7 +188,7 @@ this code block is indented by one tab
<screen>
this code block is indented by two tabs
-These should not be escaped: \$ \\ \&gt; \[ \{
+These should not be escaped: \$ \\ \&#62; \[ \{
</screen>
</section>
<section>
@@ -577,9 +577,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{
word.
</para>
<para>
- This is code: <literal>&gt;</literal>, <literal>$</literal>,
+ This is code: <literal>&#62;</literal>, <literal>$</literal>,
<literal>\</literal>, <literal>\$</literal>,
- <literal>&lt;html&gt;</literal>.
+ <literal>&#60;html&#62;</literal>.
</para>
</section>
<section>
@@ -602,7 +602,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
</para>
<para>
Here is some quoted <quote><literal>code</literal></quote> and a
- <quote><ulink url="http://example.com/?foo=1&amp;bar=2">quoted link</ulink></quote>.
+ <quote><ulink url="http://example.com/?foo=1&#38;bar=2">quoted link</ulink></quote>.
</para>
<para>
Some dashes: one&#8212;two&#8212;three&#8212;four&#8212;five.
@@ -691,9 +691,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{
</para>
<para>
<literal>\begin{tabular}{|l|l|}\hline
-Animal &amp; Number \\ \hline
-Dog &amp; 2 \\
-Cat &amp; 1 \\ \hline
+Animal &#38; Number \\ \hline
+Dog &#38; 2 \\
+Cat &#38; 1 \\ \hline
\end{tabular}</literal>
</para>
</section>
@@ -705,44 +705,44 @@ Cat &amp; 1 \\ \hline
<itemizedlist>
<listitem>
<para>
- I hat: &Icirc;
+ I hat: &#206;
</para>
</listitem>
<listitem>
<para>
- o umlaut: &ouml;
+ o umlaut: &#246;
</para>
</listitem>
<listitem>
<para>
- section: &sect;
+ section: &#167;
</para>
</listitem>
<listitem>
<para>
- set membership: &isin;
+ set membership: &#8712;
</para>
</listitem>
<listitem>
<para>
- copyright: &copy;
+ copyright: &#169;
</para>
</listitem>
</itemizedlist>
<para>
- AT&amp;T has an ampersand in their name.
+ AT&#38;T has an ampersand in their name.
</para>
<para>
- AT&amp;T is another way to write it.
+ AT&#38;T is another way to write it.
</para>
<para>
- This &amp; that.
+ This &#38; that.
</para>
<para>
- 4 &lt; 5.
+ 4 &#60; 5.
</para>
<para>
- 6 &gt; 5.
+ 6 &#62; 5.
</para>
<para>
Backslash: \
@@ -775,7 +775,7 @@ Cat &amp; 1 \\ \hline
Right paren: )
</para>
<para>
- Greater-than: &gt;
+ Greater-than: &#62;
</para>
<para>
Hash: #
@@ -868,25 +868,25 @@ Cat &amp; 1 \\ \hline
<title>With ampersands</title>
<para>
Here's a
- <ulink url="http://example.com/?foo=1&amp;bar=2">link with an ampersand in the URL</ulink>.
+ <ulink url="http://example.com/?foo=1&#38;bar=2">link with an ampersand in the URL</ulink>.
</para>
<para>
Here's a link with an amersand in the link text:
- <ulink url="http://att.com/">AT&amp;T</ulink>.
+ <ulink url="http://att.com/">AT&#38;T</ulink>.
</para>
<para>
- Here's an <ulink url="/script?foo=1&amp;bar=2">inline link</ulink>.
+ Here's an <ulink url="/script?foo=1&#38;bar=2">inline link</ulink>.
</para>
<para>
Here's an
- <ulink url="/script?foo=1&amp;bar=2">inline link in pointy braces</ulink>.
+ <ulink url="/script?foo=1&#38;bar=2">inline link in pointy braces</ulink>.
</para>
</section>
<section>
<title>Autolinks</title>
<para>
With an ampersand:
- <ulink url="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</ulink>
+ <ulink url="http://example.com/?foo=1&#38;bar=2">http://example.com/?foo=1&#38;bar=2</ulink>
</para>
<itemizedlist>
<listitem>
@@ -916,10 +916,10 @@ Cat &amp; 1 \\ \hline
</blockquote>
<para>
Auto-links should not occur here:
- <literal>&lt;http://example.com/&gt;</literal>
+ <literal>&#60;http://example.com/&#62;</literal>
</para>
<screen>
-or here: &lt;http://example.com/&gt;
+or here: &#60;http://example.com/&#62;
</screen>
</section>
</section>
@@ -970,7 +970,7 @@ or here: &lt;http://example.com/&gt;
footnote (as with list items).
</para>
<screen>
- { &lt;code&gt; }
+ { &#60;code&#62; }
</screen>
<para>
If you want, you can indent every line, but you can also be lazy
diff --git a/tests/writer.native b/tests/writer.native
index 44c133311..683b2c550 100644
--- a/tests/writer.native
+++ b/tests/writer.native
@@ -240,8 +240,8 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
, [ Plain [Str "section:",Space,Str "\167"] ]
, [ Plain [Str "set",Space,Str "membership:",Space,Str "\8712"] ]
, [ Plain [Str "copyright:",Space,Str "\169"] ] ]
-, Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name",Str "."]
-, Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it",Str "."]
+, Para [Str "AT",Str "&",Str "T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name",Str "."]
+, Para [Str "AT",Str "&",Str "T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it",Str "."]
, Para [Str "This",Space,Str "&",Space,Str "that",Str "."]
, Para [Str "4",Space,Str "<",Space,Str "5",Str "."]
, Para [Str "6",Space,Str ">",Space,Str "5",Str "."]
@@ -294,7 +294,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
, Key [Str "bar"] (Src "/url/" "Title with &quot;quotes&quot; inside")
, Header 2 [Str "With",Space,Str "ampersands"]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Link [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] (Ref [Str "1"]),Str "."]
-, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT&T"] (Ref [Str "2"]),Str "."]
+, Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT",Str "&",Str "T"] (Ref [Str "2"]),Str "."]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] (Src "/script?foo=1&bar=2" ""),Str "."]
, Para [Str "Here",Apostrophe,Str "s",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] (Src "/script?foo=1&bar=2" ""),Str "."]
, Key [Str "1"] (Src "http://example.com/?foo=1&bar=2" "")