How to use the pykakasi.a2 function in pykakasi

To help you get started, we’ve selected a few pykakasi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github miurahr / pykakasi / tests / basic_3.py View on Github external
def test_a2(self):

        TESTS = [
            ("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
             "ABCDEFGHIJKLMNOPQRSTUVWXYZ"),
            ("abcdefghijklmnopqrstuvwxyz",
             "abcdefghijklmnopqrstuvwxyz")
      ]

        a = pykakasi.a2()
        for case, result in TESTS:
            for i in range(26):
                self.assertEqual(a.convert(case[i]), result[i])