def which_translation(argument): if argument == 'M': return morse_to_text(message) elif argument == 'T': return text_to_morse(message) else: pass
def test_vice_radku_naopak(): assert morseovka.morse_to_text(".-/..../---/.---//\n...././.../.-../---//.---/.//-.-/---/.-./-.--/...///") == ("ahoj \nheslo je korys. ")
def test_amorse(): assert morseovka.morse_to_text(".-") == "a"
def test_smichu_naopak(): assert morseovka.morse_to_text("----/.-//----/.-//----/.-") == "cha cha cha"