diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-13 16:37:18 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-13 16:37:18 +0100 |
| commit | 1cd687b681224a6a190fea5d542b92f147f9abf0 (patch) | |
| tree | 471c106ceee8384f91aa0304fa21148493663177 /src/parse/tests.rs | |
| parent | 274e008e2c775d9c8c888767a6baeaff9e99de9d (diff) | |
Move escaping tests to integration and extend them 🚚
Diffstat (limited to 'src/parse/tests.rs')
| -rw-r--r-- | src/parse/tests.rs | 17 |
1 files changed, 0 insertions, 17 deletions
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 @@ -252,23 +252,6 @@ fn test_parse_raw() { } #[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. t!("{({1) + 3}" |
