[KoCo-CVS] [Commit] KoreanCodecs/test test_hangul.py
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-24 07:20:21
|
perky 02/04/24 00:20:16 Modified: test test_hangul.py Log: - Add hangul.conjoin and hangul.disjoint functions (this function set provides converter between U+AC00 and U+1100 pages) Revision Changes Path 1.4 +11 -0 KoreanCodecs/test/test_hangul.py Index: test_hangul.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/test/test_hangul.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- test_hangul.py 24 Apr 2002 04:19:45 -0000 1.3 +++ test_hangul.py 24 Apr 2002 07:20:16 -0000 1.4 @@ -70,6 +70,17 @@ self.assertEqual(format(fmt, { 'int': 1, 'str': u'hmm', 'float': 3.14 }), u'1\uc785\ub2c8\ub2e4. hmm\uc740 hmm\uc5d03.14\uc640') + def test_conjoin(self): + self.assertEqual(conjoin(u'\u1112\u1161\u11ab\u1100\u1173\u11af\u110b\u1175' + u' \u110c\u1169\u11c2\u110b\u1161\u110b\u116d.'), + u'\ud55c\uae00\uc774 \uc88b\uc544\uc694.') + + def test_disjoint(self): + self.assertEqual(disjoint(u'\ub9c8\ub140\ubc30\ub2ec\ubd80 \ud0a4\ud0a4'), + u'\u1106\u1161\u1102\u1167\u1107\u1162\u1103\u1161\u11af\u1107\u116e' + u' \u110f\u1175\u110f\u1175') + + if __name__ == '__main__': import sys sys.argv.insert(1, '-v') |