From 1cd687b681224a6a190fea5d542b92f147f9abf0 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 13 Jan 2021 16:37:18 +0100 Subject: =?UTF-8?q?Move=20escaping=20tests=20to=20integration=20and=20exte?= =?UTF-8?q?nd=20them=20=F0=9F=9A=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parse/tests.rs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/parse/tests.rs') diff --git a/src/parse/tests.rs b/src/parse/tests.rs index f8b9dcbb..9a0a4ce6 100644 --- a/src/parse/tests.rs +++ b/src/parse/tests.rs @@ -251,23 +251,6 @@ fn test_parse_raw() { errors: [S(8..8, "expected backtick(s)")]); } -#[test] -fn test_parse_escape_sequences() { - // Basic, mostly tested in tokenizer. - t!(r"\[" Text("[")); - t!(r"\u{1F3D5}" nodes: [S(0..9, Text("🏕"))], spans: true); - - // Bad value. - t!(r"\u{FFFFFF}" - nodes: [Text(r"\u{FFFFFF}")], - errors: [S(0..10, "invalid unicode escape sequence")]); - - // No closing brace. - t!(r"\u{41*" - nodes: [Text("A"), Strong], - errors: [S(5..5, "expected closing brace")]); -} - #[test] fn test_parse_groups() { // Test paren group. -- cgit v1.2.3