plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

test_rm_accents.py (254B)


      1 import unittest
      2 
      3 from plint import common
      4 
      5 
      6 class RmAccents(unittest.TestCase):
      7     def testSimple(self):
      8         text = "déjà"
      9         v = common.strip_accents(text)
     10         self.assertEqual(v, "deja")
     11 
     12 
     13 if __name__ == "__main__":
     14     unittest.main()