summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-09-25 13:39:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-09-27 15:50:43 +0200
commite7b6e8c60f0001c4b228bda570ec0d1b7dc3a739 (patch)
tree2c1c1b9814fe64f456c5dfefb76ecc8d5dc0c4a9 /tests/scripts
parent4d74a89cfcdce4d9207f51c786a2a1fc278c5a11 (diff)
downloadweechat-e7b6e8c60f0001c4b228bda570ec0d1b7dc3a739.zip
api: restrict number to integer in function string_parse_size
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/python/testapi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py
index 6d3833a1a..5e9df9a13 100644
--- a/tests/scripts/python/testapi.py
+++ b/tests/scripts/python/testapi.py
@@ -79,9 +79,9 @@ def test_strings():
check(weechat.string_parse_size('1') == 1)
check(weechat.string_parse_size('12b') == 12)
check(weechat.string_parse_size('123 b') == 123)
- check(weechat.string_parse_size('1.34k') == 1340)
- check(weechat.string_parse_size('1.5m') == 1500000)
- check(weechat.string_parse_size('2.1g') == 2100000000)
+ check(weechat.string_parse_size('120k') == 120000)
+ check(weechat.string_parse_size('1500m') == 1500000000)
+ check(weechat.string_parse_size('3g') == 3000000000)
check(weechat.string_color_code_size('') == 0)
check(weechat.string_color_code_size('test') == 0)
str_color = weechat.color('yellow,red')