2 from nose
.tools
import *
10 (u
'ヤミカラス', 'yamikarasu'),
15 (u
'ピカチュウ', u
'pikachuu'),
20 (u
'ぎゃくてん', 'gyakuten'),
21 (u
'ウェザーボール', 'wezaabooru'),
23 # Special katakana combinations
24 (u
'ラティアス', 'ratiasu'),
29 for kana
, roomaji
in tests
:
30 result
= pokedex
.roomaji
.romanize(kana
)
31 assert_equal(result
, roomaji
, u
"'%s' romanizes correctly" % roomaji
)
33 def test_roomaji_cs():
35 (u
'ヤミカラス', u
'jamikarasu'),
40 (u
'ピカチュウ', u
'pikačú'),
45 (u
'ぎゃくてん', u
'gjakuten'),
46 (u
'ウェザーボール', u
'wezábóru'),
48 # Special katakana combinations
49 (u
'ラティアス', u
'ratiasu'),
54 for kana
, roomaji
in tests
:
55 result
= pokedex
.roomaji
.romanize(kana
, 'cs')
56 assert_equal(result
, roomaji
, u
"'%s' romanizes correctly for Czech" % roomaji
)