mirror of https://github.com/Textualize/rich.git
Add a test for __repr__ tag matching with simple content
This commit is contained in:
parent
022c02722d
commit
86ef7d5298
|
@ -30,6 +30,16 @@ highlight_tests = [
|
||||||
Span(4, 5, "repr.tag_end"),
|
Span(4, 5, "repr.tag_end"),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"<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')
|
||||||
|
]
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"False True None",
|
"False True None",
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue