diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-04 12:09:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-04 12:09:33 (GMT) |
commit | 7c924ec9258fd8e324dedcdcc35bb8706aea7922 (patch) | |
tree | 115df7fb2950ac6e9e399b119d0facc4f0cde618 /Lib | |
parent | e689a889da7f253cdc2281e55659ae591ee49f0b (diff) | |
download | cpython-7c924ec9258fd8e324dedcdcc35bb8706aea7922.zip cpython-7c924ec9258fd8e324dedcdcc35bb8706aea7922.tar.gz cpython-7c924ec9258fd8e324dedcdcc35bb8706aea7922.tar.bz2 |
Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Issue #29.
PR #29 was released in february 2004!
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicodedata.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index c82e4af..6fbb6dd 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -186,6 +186,11 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): # The rest can be found in test_normalization.py # which requires an external file. + def test_pr29(self): + # http://www.unicode.org/review/pr-29.html + for text in (u"\u0b47\u0300\u0b3e", u"\u1100\u0300\u1161"): + self.assertEqual(self.db.normalize('NFC', text), text) + def test_east_asian_width(self): eaw = self.db.east_asian_width self.assertRaises(TypeError, eaw, 'a') |