diff options
author | Santhosh Thottingal <santhosh.thottingal@gmail.com> | 2009-01-18 12:39:04 +0530 |
---|---|---|
committer | Santhosh Thottingal <santhosh.thottingal@gmail.com> | 2009-01-18 12:39:04 +0530 |
commit | aba0993c3f6827d1b15c834aa1b3a5c02d1e1ee8 (patch) | |
tree | 7001972ba43ebb41a6562a6bce036b709156f581 /payyans/tests | |
parent | 91e59b25df3f60704a3b929469639de213377fb7 (diff) | |
download | Rachana.git-aba0993c3f6827d1b15c834aa1b3a5c02d1e1ee8.tar.gz Rachana.git-aba0993c3f6827d1b15c834aa1b3a5c02d1e1ee8.tar.xz Rachana.git-aba0993c3f6827d1b15c834aa1b3a5c02d1e1ee8.zip |
Fixed the word2ASCII bugs, and adding a testcase
Diffstat (limited to 'payyans/tests')
-rw-r--r-- | payyans/tests/test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/payyans/tests/test.py b/payyans/tests/test.py new file mode 100644 index 0000000..3791df5 --- /dev/null +++ b/payyans/tests/test.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +from payyans import Payyan +p=Payyan() +p.mapping_filename="/usr/share/payyans/maps/karthika.map" +print p.word2Unicode(u"hmÀjnI").encode('utf-8') +print p.word2ASCII(u"വാര്ഷിക").encode('utf-8') +print p.word2ASCII(u"ആന വായിലമ്പാഴങ്ങ?").encode('utf-8') +print p.word2Unicode(u"B\ hmbne¼mg§?").encode('utf-8') +print p.word2ASCII(u"മോരു തരുമോ!").encode('utf-8') +print p.word2Unicode(u"tamcp Xcptam!").encode('utf-8') |