Пример #1
0
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"