1 // This file is auto-generated by the build script
2 // Please, do not modify it manually
4 use super::test_markdown_html
;
7 fn smart_punct_test_1() {
8 let original
= r
##""Hello," said the spider.
11 let expected
= r
##"<p>“Hello,” said the spider.
12 “‘Shelob’ is my name.”</p>
15 test_markdown_html(original
, expected
, true);
19 fn smart_punct_test_2() {
20 let original
= r
##"'A', 'B', and 'C' are letters.
22 let expected
= r
##"<p>‘A’, ‘B’, and ‘C’ are letters.</p>
25 test_markdown_html(original
, expected
, true);
29 fn smart_punct_test_3() {
30 let original
= r
##"'Oak,' 'elm,' and 'beech' are names of trees.
33 let expected
= r
##"<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees.
37 test_markdown_html(original
, expected
, true);
41 fn smart_punct_test_4() {
42 let original
= r
##"'He said, "I want to go."'
44 let expected
= r
##"<p>‘He said, “I want to go.”’</p>
47 test_markdown_html(original
, expected
, true);
51 fn smart_punct_test_5() {
52 let original
= r
##"Were you alive in the 70's?
54 let expected
= r
##"<p>Were you alive in the 70’s?</p>
57 test_markdown_html(original
, expected
, true);
61 fn smart_punct_test_6() {
62 let original
= r
##"Here is some quoted '`code`' and a "[quoted link](url)".
64 let expected
= r
##"<p>Here is some quoted ‘<code>code</code>’ and a “<a href="url">quoted link</a>”.</p>
67 test_markdown_html(original
, expected
, true);
71 fn smart_punct_test_7() {
72 let original
= r
##"'tis the season to be 'jolly'
74 let expected
= r
##"<p>’tis the season to be ‘jolly’</p>
77 test_markdown_html(original
, expected
, true);
81 fn smart_punct_test_8() {
82 let original
= r
##"'We'll use Jane's boat and John's truck,' Jenna said.
84 let expected
= r
##"<p>‘We’ll use Jane’s boat and John’s truck,’ Jenna said.</p>
87 test_markdown_html(original
, expected
, true);
91 fn smart_punct_test_9() {
92 let original
= r
##""A paragraph with no closing quote.
94 "Second paragraph by same speaker, in fiction."
96 let expected = r##"<p
>“A paragraph with no closing quote
.</p
>
97 <p
>“Second paragraph by same speaker
, in fiction
.”
</p
>
100 test_markdown_html(original, expected, true);
104 fn smart_punct_test_10() {
105 let original = r##"[a
]'s b'
107 let expected = r##"<p
>[a
]’s b’
</p
>
110 test_markdown_html(original, expected, true);
114 fn smart_punct_test_11() {
115 let original = r##"\"This is not smart
.\"
119 let expected = r##"<p
>"
;This is not smart
."
;
124 test_markdown_html(original, expected, true);
128 fn smart_punct_test_12() {
129 let original = r##"Some dashes
: em
---em
135 let expected = r##"<p
>Some dashes
: em—em
142 test_markdown_html(original, expected, true);
146 fn smart_punct_test_13() {
147 let original = r##"one
-
156 thirteen
-------------.
158 let expected = r##"<p
>one
-
170 test_markdown_html(original, expected, true);
174 fn smart_punct_test_14() {
175 let original = r##"Escaped hyphens
: \-- \-\-\-.
177 let expected = r##"<p
>Escaped hyphens
: -- ---.</p
>
180 test_markdown_html(original, expected, true);
184 fn smart_punct_test_15() {
185 let original = r##"Ellipses
...and
...and
....
187 let expected = r##"<p
>Ellipses…and…and…
.</p
>
190 test_markdown_html(original, expected, true);
194 fn smart_punct_test_16() {
195 let original = r##"No ellipses
\.\.\.
197 let expected = r##"<p
>No ellipses
...</p
>
200 test_markdown_html(original, expected, true);