From 670ebe0ec5e12976a3a3d2f169314e2db9a13b48 Mon Sep 17 00:00:00 2001 From: Hedy Li Date: Wed, 15 Jul 2020 16:50:13 +0800 Subject: [PATCH] add test for Text.rstrip_end() --- tests/test_text.py | 6 ++++++ 1 file changed, 6 insertions(+) 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")