summaryrefslogtreecommitdiff
path: root/tests/basic_3.py
diff options
context:
space:
mode:
authorTomaz Solc <tomaz.solc@tablix.org>2010-10-12 09:20:39 +0200
committerTomaz Solc <tomaz.solc@tablix.org>2010-10-12 09:21:31 +0200
commitb6ca26833caeaede52e13bcf6ebd0e2015a2d753 (patch)
treea562b8c5422745c998ae123206870c685cac409a /tests/basic_3.py
parentfe6fa063d6eb39f9102fef5f907105b8cfe9bac6 (diff)
downloadunidecode-b6ca26833caeaede52e13bcf6ebd0e2015a2d753.tar.gz
Check if any character in the BMP range makes it throw an exception.
Diffstat (limited to 'tests/basic_3.py')
-rw-r--r--tests/basic_3.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basic_3.py b/tests/basic_3.py
index 1148575..19d358d 100644
--- a/tests/basic_3.py
+++ b/tests/basic_3.py
@@ -9,6 +9,12 @@ class TestUnidecode(unittest.TestCase):
self.failUnlessEqual(unidecode(t), t)
+ def test_bmp(self):
+ for n in range(0,0x10000):
+ # Just check that it doesn't throw an exception
+ t = unichr(n)
+ unidecode(t)
+
def test_specific(self):
TESTS = [