diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-04-28 05:31:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-04-28 05:31:41 +0000 |
commit | 4825c90b8299e0ee4ee27c2529820bad8b64c3b1 (patch) | |
tree | 0362830820537da5f1764d96e88ab8d2e7227827 /tests/commands/run_test.py | |
parent | Releasing debian version 2.2.0-2. (diff) | |
download | pre-commit-4825c90b8299e0ee4ee27c2529820bad8b64c3b1.tar.xz pre-commit-4825c90b8299e0ee4ee27c2529820bad8b64c3b1.zip |
Merging upstream version 2.3.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/commands/run_test.py')
-rw-r--r-- | tests/commands/run_test.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/commands/run_test.py b/tests/commands/run_test.py index f8e8823..c51bcff 100644 --- a/tests/commands/run_test.py +++ b/tests/commands/run_test.py @@ -52,6 +52,18 @@ def test_full_msg(): assert ret == 'start......end\n' +def test_full_msg_with_cjk(): + ret = _full_msg( + start='啊あ아', + end_msg='end', + end_color='', + use_color=False, + cols=15, + ) + # 5 dots: 15 - 6 - 3 - 1 + assert ret == '啊あ아.....end\n' + + def test_full_msg_with_color(): ret = _full_msg( start='start', |