// This file is auto-generated by the build script // Please, do not modify it manually use super::test_markdown_html; #[test] fn smart_punct_test_1() { let original = r##""Hello," said the spider. "'Shelob' is my name." "##; let expected = r##"

“Hello,” said the spider. “‘Shelob’ is my name.”

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_2() { let original = r##"'A', 'B', and 'C' are letters. "##; let expected = r##"

‘A’, ‘B’, and ‘C’ are letters.

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_3() { let original = r##"'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.' "##; let expected = r##"

‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_4() { let original = r##"'He said, "I want to go."' "##; let expected = r##"

‘He said, “I want to go.”’

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_5() { let original = r##"Were you alive in the 70's? "##; let expected = r##"

Were you alive in the 70’s?

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_6() { let original = r##"Here is some quoted '`code`' and a "[quoted link](url)". "##; let expected = r##"

Here is some quoted ‘code’ and a “quoted link”.

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_7() { let original = r##"'tis the season to be 'jolly' "##; let expected = r##"

’tis the season to be ‘jolly’

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_8() { let original = r##"'We'll use Jane's boat and John's truck,' Jenna said. "##; let expected = r##"

‘We’ll use Jane’s boat and John’s truck,’ Jenna said.

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_9() { let original = r##""A paragraph with no closing quote. "Second paragraph by same speaker, in fiction." "##; let expected = r##"

“A paragraph with no closing quote.

“Second paragraph by same speaker, in fiction.”

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_10() { let original = r##"[a]'s b' "##; let expected = r##"

[a]’s b’

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_11() { let original = r##"\"This is not smart.\" This isn\'t either. 5\'8\" "##; let expected = r##"

"This is not smart." This isn't either. 5'8"

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_12() { let original = r##"Some dashes: em---em en--en em --- em en -- en 2--3 "##; let expected = r##"

Some dashes: em—em en–en em — em en – en 2–3

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_13() { let original = r##"one- two-- three--- four---- five----- six------ seven------- eight-------- nine--------- thirteen-------------. "##; let expected = r##"

one- two– three— four–– five—– six—— seven—–– eight–––– nine——— thirteen———––.

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_14() { let original = r##"Escaped hyphens: \-- \-\-\-. "##; let expected = r##"

Escaped hyphens: -- ---.

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_15() { let original = r##"Ellipses...and...and.... "##; let expected = r##"

Ellipses…and…and….

"##; test_markdown_html(original, expected, true); } #[test] fn smart_punct_test_16() { let original = r##"No ellipses\.\.\. "##; let expected = r##"

No ellipses...

"##; test_markdown_html(original, expected, true); }