use mini_markdown::render; #[test] fn commonmark_test_25_entity_and_numeric_character_references() { let test_html = render(" & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸\n"); let reference_html = "
& © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_26_entity_and_numeric_character_references() { let test_html = render("# Ӓ Ϡ \n"); let reference_html = "# Ӓ Ϡ �
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_27_entity_and_numeric_character_references() { let test_html = render("" ആ ಫ\n"); let reference_html = "" ആ ಫ
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_28_entity_and_numeric_character_references() { let test_html = render("  &x; \n\nabcdef0;\n&ThisIsNotDefined; &hi?;\n"); let reference_html = "  &x; &#; &#x;\n�\n&#abcdef0;\n&ThisIsNotDefined; &hi?;
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_29_entity_and_numeric_character_references() { let test_html = render("©\n"); let reference_html = "©
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_30_entity_and_numeric_character_references() { let test_html = render("&MadeUpEntity;\n"); let reference_html = "&MadeUpEntity;
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_31_entity_and_numeric_character_references() { let test_html = render("\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_32_entity_and_numeric_character_references() { let test_html = render("[foo](/föö \"föö\")\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_33_entity_and_numeric_character_references() { let test_html = render("[foo]\n\n[foo]: /föö \"föö\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_34_entity_and_numeric_character_references() { let test_html = render("``` föö\nfoo\n```\n"); let reference_html = "foo\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_35_entity_and_numeric_character_references() {
let test_html = render("`föö`\n");
let reference_html = "föö
föfö\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_37_entity_and_numeric_character_references() {
let test_html = render("*foo*\n*foo*\n");
let reference_html = "*foo*\nfoo
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_38_entity_and_numeric_character_references() { let test_html = render("* foo\n\n* foo\n"); let reference_html = "* foo
\nfoo\n\nbar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_40_entity_and_numeric_character_references() { let test_html = render(" foo\n"); let reference_html = "\tfoo
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_41_entity_and_numeric_character_references() { let test_html = render("[a](url "tit")\n"); let reference_html = "[a](url "tit")
\n"; assert_eq!(test_html, reference_html); }