commit b793213e9354089bd56be0daa31d42bf4a267cc2
parent be5a405b13d63b5619e690de22da927f1815793b
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Tue, 2 Aug 2016 09:49:41 +0200
add RmAccents test
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/versetest.py b/versetest.py
@@ -2,6 +2,7 @@
import template
import diaeresis
+import common
import verse
import unittest
from pprint import pprint
@@ -239,6 +240,12 @@ class Disjunct(Counts):
possible = self.runCount(vv, limit=v)
self.assertTrue(self.achievesPossibility(possible, v))
+class RmAccents(unittest.TestCase):
+ def testSimple(self):
+ text = "déjà"
+ v = common.strip_accents(text)
+ self.assertEqual(v, "deja")
+
class SanityCheck(unittest.TestCase):
def testSimple(self):
text = "Patati patata patata tata vies"