예제 #1
0
def test_88888888():
    assert number(88888888) == ('はっせんはっぴゃくはちじゅうはちまん' 'はっせんはっぴゃくはちじゅうはち')
예제 #2
0
def test_four():
    assert number(4) == 'よん'
예제 #3
0
def test_8007():
    assert number(8007) == 'はっせんなな'
예제 #4
0
def test_10000():
    assert number(10000) == 'まん'
예제 #5
0
def test_zero():
    assert number(0) == 'ぜろ'
예제 #6
0
def test_3010():
    assert number(3010) == 'さんぜんじゅう'
예제 #7
0
def test_601():
    assert number(601) == 'ろっぴゃくいち'
예제 #8
0
def test_845():
    assert number(845) == 'はっぴゃくよんじゅうご'
예제 #9
0
def test_100():
    assert number(100) == 'ひゃく'
예제 #10
0
def test_310():
    assert number(310) == 'さんびゃくじゅう'
예제 #11
0
def test_99():
    assert number(99) == 'きゅうじゅうきゅう'
예제 #12
0
def test_40():
    assert number(40) == 'よんじゅう'
예제 #13
0
def test_27():
    assert number(27) == 'にじゅうなな'
예제 #14
0
def test_negative():
    with pytest.raises(ValueError):
        number(-5)
예제 #15
0
def test_ten():
    assert number(10) == 'じゅう'