Merge pull request #160 from hedythedev/master

add test for rstrip_end() in Text class
This commit is contained in:
Will McGugan 2020-07-15 11:40:39 +01:00 committed by GitHub
commit 7df0374f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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")