summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 807bc0fd..2f4723e4 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -21,6 +21,11 @@ def test_strip_ansi():
assert base_str != ansi_str
assert base_str == cu.strip_ansi(ansi_str)
+def test_display_width():
+ base_str = HELLO_WORLD
+ ansi_str = Fore.GREEN + base_str + Fore.RESET
+ assert cu.display_width(ansi_str) != len(ansi_str)
+
def test_strip_quotes_no_quotes():
base_str = HELLO_WORLD
stripped = cu.strip_quotes(base_str)