Created
March 21, 2018 16:00
-
-
Save inirudebwoy/e4bc1f1e32579ccc6db4969d2fda52ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! -*- coding: utf-8 -*- | |
from resolution import to_text | |
def test_1(): | |
assert to_text(1) == 'jeden' | |
def test_12(): | |
assert to_text(12) == 'dwanaście' | |
def test_99(): | |
assert to_text(99) == 'dziewięćdziesiąt dziewięć' | |
def test_101(): | |
assert to_text(101) == 'sto jeden' | |
def test_200(): | |
assert to_text(200) == 'dwieście' | |
def test_520(): | |
assert to_text(520) == 'pięćset dwadzieścia' | |
def test_849(): | |
assert to_text(849) == 'osiemset czterdzieści dziewięć' | |
def test_3091(): | |
assert to_text(3091) == 'trzy tysiące dziewięćdziesiąt jeden' | |
def test_342900(): | |
assert to_text(342900) == 'trzysta czterdzieści dwa tysiące dziewięćset' | |
def test_100000(): | |
assert to_text(100000) == 'sto tysięcy' | |
def test_1000000(): | |
assert to_text(1000000) == 'jeden milion' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment