diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_spans.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 8190f01..14d92b2 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -106,12 +106,12 @@ fn start_tag_name_span() { let mut labels = Vec::new(); for token in tokens { if let Token::StartTag(tag) = token { - labels.push((tag.name_span(), "")); + labels.push((tag.name_span, "")); } } labels }; - assert_panics_but_should_not(|| assert_char_encoding_independence(html, labeler)); // FIXME + assert_char_encoding_independence(html, labeler); assert_snapshot!(test_and_annotate(html, labeler), @r###" <x> <xyz> <xyz > <xyz/> ^ ^^^ ^^^ ^^^ @@ -125,12 +125,12 @@ fn end_tag_name_span() { let mut labels = Vec::new(); for token in tokens { if let Token::EndTag(tag) = token { - labels.push((tag.name_span(), "")); + labels.push((tag.name_span, "")); } } labels }; - assert_panics_but_should_not(|| assert_char_encoding_independence(html, labeler)); // FIXME + assert_char_encoding_independence(html, labeler); assert_snapshot!(test_and_annotate(html, labeler), @r###" </x> </xyz> </xyz > </xyz/> ^ ^^^ ^^^ ^^^ |