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_K2H(self):
TESTS = [
("カンタン", ("かんたん", 4)),
("ニャ", ("にゃ",2)),
("ッキ", ("っき",2)),
("ッファ", ("っふぁ", 3)),
("シツモン", ("しつもん",4)),
("チガイ", ("ちがい",3)),
]
h = pykakasi.K2H()
for case, result in TESTS:
self.assertEqual(h.convert(case), result)