From 5c7605629d70cc613cb3bee6ac419e7ee4d9cf7f Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 13 Oct 2022 18:13:26 +0200 Subject: Add tests for numeric character references in mdast --- tests/character_reference.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/character_reference.rs') 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" ); -- cgit