From 6e6bbcd053c6114a9fa75052b09e701eaa2f3465 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 3 Sep 2023 11:06:25 +0200 Subject: feat: add Doctype::name_span --- tests/test_spans.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 08b5a31..718a176 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -308,6 +308,9 @@ fn doctype_id_spans() { }; let mut labels = Vec::new(); + if let Some(name_span) = doctype.name_span() { + labels.push((name_span, "name")); + } if let Some(public_id_span) = doctype.public_id_span() { labels.push((public_id_span, "public id")); } @@ -322,9 +325,10 @@ fn doctype_id_spans() { assert_snapshot!(annotated, @r###" - ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ system id - │ - public id + ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ system id + │ │ + │ public id + name "###); } -- cgit v1.2.3