Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_H2K(self):
TESTS = [
("かんたん", ("カンタン", 4)),
("にゃ", ("ニャ",2)),
("っき", ("ッキ",2)),
("っふぁ", ("ッファ", 3)),
("しつもん", ("シツモン",4)),
("ちがい", ("チガイ",3)),
]
h = pykakasi.H2K()
for case, result in TESTS:
self.assertEqual(h.convert(case), result)