From 86ef7d5298545ffaac49ebfd46288d8a533ef60f Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 11 Oct 2022 15:48:37 +0100 Subject: [PATCH] Add a test for __repr__ tag matching with simple content --- tests/test_highlighter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_highlighter.py b/tests/test_highlighter.py index a9d036ba..9905c92b 100644 --- a/tests/test_highlighter.py +++ b/tests/test_highlighter.py @@ -30,6 +30,16 @@ highlight_tests = [ Span(4, 5, "repr.tag_end"), ], ), + ( + "", + [ + Span(0, 1, 'repr.tag_start'), + Span(1, 5, 'repr.tag_name'), + Span(5, 8, 'repr.tag_contents'), + Span(8, 9, 'repr.tag_end'), + Span(6, 8, 'repr.number') + ] + ), ( "False True None", [