summaryrefslogtreecommitdiff
path: root/tests/scripts/python
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/python')
-rw-r--r--tests/scripts/python/testapi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py
index 2fbf8370d..aaa03157a 100644
--- a/tests/scripts/python/testapi.py
+++ b/tests/scripts/python/testapi.py
@@ -71,6 +71,10 @@ def test_strings():
check(weechat.string_format_size(1) == '1 byte')
check(weechat.string_format_size(2097152) == '2.10 MB')
check(weechat.string_format_size(420000000) == '420.00 MB')
+ check(weechat.string_color_code_size('') == 0)
+ check(weechat.string_color_code_size('test') == 0)
+ str_color = weechat.color('yellow,red')
+ check(weechat.string_color_code_size(str_color) == 7)
check(weechat.string_remove_color('test', '?') == 'test')
check(weechat.string_is_command_char('/test') == 1)
check(weechat.string_is_command_char('test') == 0)