mirror of https://github.com/Textualize/rich.git
Add a test for __repr__ tag matching with inner tag
This commit is contained in:
parent
86ef7d5298
commit
59a60f830d
|
@ -33,11 +33,21 @@ highlight_tests = [
|
|||
(
|
||||
"<foo: 23>",
|
||||
[
|
||||
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')
|
||||
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")
|
||||
]
|
||||
),
|
||||
(
|
||||
"<foo: <bar: 23>>",
|
||||
[
|
||||
Span(0, 1, "repr.tag_start"),
|
||||
Span(1, 5, "repr.tag_name"),
|
||||
Span(5, 15, "repr.tag_contents"),
|
||||
Span(15, 16, "repr.tag_end"),
|
||||
Span(12, 14, "repr.number")
|
||||
]
|
||||
),
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue