示例#1
0
 def test_identifier(self):
     assert unicodedb_5_2_0.isxidstart(ord('A'))
     assert not unicodedb_5_2_0.isxidstart(ord('_'))
     assert not unicodedb_5_2_0.isxidstart(ord('0'))
     assert not unicodedb_5_2_0.isxidstart(ord('('))
     assert unicodedb_5_2_0.isxidcontinue(ord('A'))
     assert unicodedb_5_2_0.isxidcontinue(ord('_'))
     assert unicodedb_5_2_0.isxidcontinue(ord('0'))
     assert not unicodedb_5_2_0.isxidcontinue(ord('('))
     oc = ord(u'日')
     assert unicodedb_5_2_0.isxidstart(oc)
示例#2
0
 def test_identifier(self):
     assert unicodedb_5_2_0.isxidstart(ord('A'))
     assert not unicodedb_5_2_0.isxidstart(ord('_'))
     assert not unicodedb_5_2_0.isxidstart(ord('0'))
     assert not unicodedb_5_2_0.isxidstart(ord('('))
     assert unicodedb_5_2_0.isxidcontinue(ord('A'))
     assert unicodedb_5_2_0.isxidcontinue(ord('_'))
     assert unicodedb_5_2_0.isxidcontinue(ord('0'))
     assert not unicodedb_5_2_0.isxidcontinue(ord('('))
     oc = ord(u'日')
     assert unicodedb_5_2_0.isxidstart(oc)