From aba0993c3f6827d1b15c834aa1b3a5c02d1e1ee8 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Sun, 18 Jan 2009 12:39:04 +0530 Subject: Fixed the word2ASCII bugs, and adding a testcase --- payyans/tests/test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 payyans/tests/test.py (limited to 'payyans/tests') 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') -- cgit