X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/bfc084c8c47a48b686c79052d01c0a198cc59bc3..ed78ca15a08dbcb73847a94c4274be15c707fafe:/pokedex/tests/test_roomaji.py?ds=sidebyside diff --git a/pokedex/tests/test_roomaji.py b/pokedex/tests/test_roomaji.py index 07a6aa7..dc95afb 100644 --- a/pokedex/tests/test_roomaji.py +++ b/pokedex/tests/test_roomaji.py @@ -12,17 +12,45 @@ def test_roomaji(): # Elongated vowel (u'イーブイ', 'iibui'), (u'ホーホー', 'hoohoo'), + (u'ピカチュウ', u'pikachuu'), # Combined characters (u'ニャース', 'nyaasu'), (u'ジャ', 'ja'), (u'ぎゃくてん', 'gyakuten'), + (u'ウェザーボール', 'wezaabooru'), # Special katakana combinations (u'ラティアス', 'ratiasu'), (u'ウィー', 'wii'), + (u'セレビィ', 'sereby'), ] for kana, roomaji in tests: result = pokedex.roomaji.romanize(kana) assert_equal(result, roomaji, u"'%s' romanizes correctly" % roomaji) + +def test_roomaji_cs(): + tests = [ + (u'ヤミカラス', u'jamikarasu'), + + # Elongated vowel + (u'イーブイ', u'íbui'), + (u'ホーホー', u'hóhó'), + (u'ピカチュウ', u'pikačú'), + + # Combined characters + (u'ニャース', u'ňjásu'), + (u'ジャ', u'dža'), + (u'ぎゃくてん', u'gjakuten'), + (u'ウェザーボール', u'wezábóru'), + + # Special katakana combinations + (u'ラティアス', u'ratiasu'), + (u'ウィー', u'wí'), + (u'セレビィ', u'serebí'), + ] + + for kana, roomaji in tests: + result = pokedex.roomaji.romanize(kana, 'cs') + assert_equal(result, roomaji, u"'%s' romanizes correctly for Czech" % roomaji)