mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
fix for markup span sorting
This commit is contained in:
parent
0c0c90a66d
commit
d04a812372
3 changed files with 12 additions and 1 deletions
|
@ -105,6 +105,12 @@ def test_render_overlap():
|
|||
]
|
||||
|
||||
|
||||
def test_adjoint():
|
||||
result = render("[red][blue]B[/blue]R[/red]")
|
||||
print(repr(result))
|
||||
assert result.spans == [Span(0, 2, "red"), Span(0, 1, "blue")]
|
||||
|
||||
|
||||
def test_render_close():
|
||||
result = render("[bold]X[/]Y")
|
||||
assert str(result) == "XY"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue