Esempio n. 1
0
File: test.py Progetto: sublee/josa
 def test_jongseong_checking(self):
     assert josa.has_jongseong('game')
     assert josa.has_jongseong('lykit')
     assert josa.has_jongseong('kijun')
     assert josa.has_jongseong('incl')
     assert josa.has_jongseong('nexon')
     assert josa.has_jongseong('python')
     #assert josa.has_jongseong('facebook')
     assert josa.has_jongseong('hangul')
     assert josa.has_jongseong('gothic')
     #assert josa.has_jongseong('google')
     #assert josa.has_jongseong('apple')
     assert josa.has_jongseong('aladin')
     assert not josa.has_jongseong('hangulize')
     assert not josa.has_jongseong('josa')
     assert not josa.has_jongseong('sublee')
     assert not josa.has_jongseong('dahlia')
     assert not josa.has_jongseong('shinvee')
     assert not josa.has_jongseong('java')
     assert not josa.has_jongseong('kart')
     assert not josa.has_jongseong('rider')
     assert not josa.has_jongseong('architecture')
Esempio n. 2
0
File: test.py Progetto: sublee/josa
 def test_empty_word(self):
     try:
         josa.has_jongseong(u'')
         assert False
     except Exception, e:
         assert isinstance(e, ValueError)