summary refs log tree commit diff stats
path: root/test/tc_utfwidth.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-17 17:28:34 +0200
committerhut <hut@lavabit.com>2010-05-17 17:29:16 +0200
commit9e435dcd5bcaf20f74f979f5ac79714172648226 (patch)
tree9433856d57c90e4495b828a0d3b8a27baf13caf6 /test/tc_utfwidth.py
parent30c8fb813f98268d93a091365f051413e4160155 (diff)
downloadranger-9e435dcd5bcaf20f74f979f5ac79714172648226.tar.gz
fixed utf stuff
Diffstat (limited to 'test/tc_utfwidth.py')
-rw-r--r--test/tc_utfwidth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tc_utfwidth.py b/test/tc_utfwidth.py
index cf564990..d8ffbe1d 100644
--- a/test/tc_utfwidth.py
+++ b/test/tc_utfwidth.py
@@ -26,9 +26,9 @@ a_katakana = "ア"  # width = 2, bytes = 3
 
 class Test(TestCase):
 	def test_utf_byte_length(self):
-		self.assertEqual(1, utf_byte_length(a_ascii[0]))
-		self.assertEqual(2, utf_byte_length(a_umlaut[0]))
-		self.assertEqual(3, utf_byte_length(a_katakana[0]))
+		self.assertEqual(1, utf_byte_length(a_ascii))
+		self.assertEqual(2, utf_byte_length(a_umlaut))
+		self.assertEqual(3, utf_byte_length(a_katakana))
 
 	def test_uwid(self):
 		self.assertEqual(1, uwid(a_ascii))