Also test an English phrase
This commit is contained in:
parent
d3816ad096
commit
f95f5a7720
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ class Tests(unittest.TestCase):
|
|||
)
|
||||
self.assertEqual(expected_length, wcswidth(phrase, n))
|
||||
|
||||
def test_hello_world(self):
|
||||
"""Width of English phrase: Hello World!"""
|
||||
self._exec_test("Hello World!", (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1))
|
||||
|
||||
@unittest.skipUnless(supports_utf8, "locale does not support UTF-8")
|
||||
def test_hello_jp(self):
|
||||
"""Width of Japanese phrase: コンニチハ, セカイ!"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue