Expand the wcwidth test

This commit is contained in:
Kovid Goyal 2017-01-09 07:13:14 +05:30
parent c4bcceb440
commit 2517e4a8a0

View File

@ -265,7 +265,7 @@ class TestDataTypes(BaseTest):
self.assertContinued(lb2, False, False, True)
def test_utils(self):
self.ae(tuple(map(wcwidth, 'a1\0')), (1, 1, 0, 2))
self.ae(tuple(map(wcwidth, 'a1\0ニチ ')), (1, 1, 0, 2, 2, 2, 1))
self.assertEqual(sanitize_title('a\0\01 \t\n\f\rb'), 'a b')
def test_color_profile(self):