예제 #1
0
파일: run.py 프로젝트: matejd11/morseovka
def which_translation(argument):
    if argument == 'M':
        return morse_to_text(message)
    elif argument == 'T':
        return text_to_morse(message)
    else:
        pass
예제 #2
0
def test_vice_radku_naopak():
    assert morseovka.morse_to_text(".-/..../---/.---//\n...././.../.-../---//.---/.//-.-/---/.-./-.--/...///") == ("ahoj \nheslo je korys. ")
예제 #3
0
def test_amorse():
    assert morseovka.morse_to_text(".-") == "a"
예제 #4
0
def test_smichu_naopak():
    assert morseovka.morse_to_text("----/.-//----/.-//----/.-") == "cha cha cha"