diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 18:13:26 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 18:13:26 +0200 |
commit | 5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f (patch) | |
tree | 0104bc317caf7ec52e3a643ce29fac8f2c95a465 /tests | |
parent | ef77260efa1122cba42eb97dcadb771ba354276a (diff) | |
download | markdown-rs-5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f.tar.gz markdown-rs-5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f.tar.bz2 markdown-rs-5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f.zip |
Add tests for numeric character references in mdast
Diffstat (limited to '')
-rw-r--r-- | tests/character_reference.rs | 10 |
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(" & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸", &ParseOptions::default())?, + to_mdast(" & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸\n# Ӓ Ϡ �\n" ആ ಫ", &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" ); |