aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 18:13:26 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 18:13:26 +0200
commit5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f (patch)
tree0104bc317caf7ec52e3a643ce29fac8f2c95a465
parentef77260efa1122cba42eb97dcadb771ba354276a (diff)
downloadmarkdown-rs-5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f.tar.gz
markdown-rs-5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f.tar.bz2
markdown-rs-5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f.zip
Add tests for numeric character references in mdast
-rw-r--r--tests/character_reference.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/character_reference.rs b/tests/character_reference.rs
index 2d5c6df..0d72fff 100644
--- a/tests/character_reference.rs
+++ b/tests/character_reference.rs
@@ -216,16 +216,16 @@ fn character_reference() -> Result<(), String> {
);
assert_eq!(
- to_mdast("&nbsp; &amp; &copy; &AElig; &Dcaron;\n&frac34; &HilbertSpace; &DifferentialD;\n&ClockwiseContourIntegral; &ngE;", &ParseOptions::default())?,
+ to_mdast("&nbsp; &amp; &copy; &AElig; &Dcaron;\n&frac34; &HilbertSpace; &DifferentialD;\n&ClockwiseContourIntegral; &ngE;\n&#35; &#1234; &#992; &#0;\n&#X22; &#XD06; &#xcab;", &ParseOptions::default())?,
Node::Root(Root {
children: vec![Node::Paragraph(Paragraph {
children: vec![Node::Text(Text {
- value: "\u{a0} & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸".into(),
- position: Some(Position::new(1, 1, 0, 3, 33, 109))
+ value: "\u{a0} & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸\n# Ӓ Ϡ �\n\" ആ ಫ".into(),
+ position: Some(Position::new(1, 1, 0, 5, 23, 158))
}),],
- position: Some(Position::new(1, 1, 0, 3, 33, 109))
+ position: Some(Position::new(1, 1, 0, 5, 23, 158))
})],
- position: Some(Position::new(1, 1, 0, 3, 33, 109))
+ position: Some(Position::new(1, 1, 0, 5, 23, 158))
}),
"should support character references as `Text`s in mdast"
);