mirror of https://github.com/Textualize/rich.git
Merge pull request #160 from hedythedev/master
add test for rstrip_end() in Text class
This commit is contained in:
commit
7df0374f42
|
@ -106,6 +106,12 @@ def test_rstrip():
|
||||||
assert str(test) == "Hello, World!"
|
assert str(test) == "Hello, World!"
|
||||||
|
|
||||||
|
|
||||||
|
def test_rstrip_end():
|
||||||
|
test = Text("Hello, World! ")
|
||||||
|
test.rstrip_end(14)
|
||||||
|
assert str(test) == "Hello, World! "
|
||||||
|
|
||||||
|
|
||||||
def test_stylize():
|
def test_stylize():
|
||||||
test = Text("Hello, World!")
|
test = Text("Hello, World!")
|
||||||
test.stylize(7, 11, "bold")
|
test.stylize(7, 11, "bold")
|
||||||
|
|
Loading…
Reference in New Issue