diff --git a/tests/test_text.py b/tests/test_text.py index 432bc4a9..9419b2fb 100644 --- a/tests/test_text.py +++ b/tests/test_text.py @@ -106,6 +106,12 @@ def test_rstrip(): 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(): test = Text("Hello, World!") test.stylize(7, 11, "bold")