Esempio n. 1
0
def test_morse_enc9():
    """
    Encoding test 9.

    Input: "wxln-ý"
    Output: ".-- -..- .-.. -. -....- -.--"
    """
    assert morse.morse_code("wxln-ý") == ".-- -..- .-.. -. -....- -.--"
Esempio n. 2
0
def test_morse_enc7():
    """
    Encoding test 7.

    Input: "áíéúů=?"
    Output: ".- .. . ..- ..- -...- ..--.."
    """
    assert morse.morse_code("áíéúů=?") == ".- .. . ..- ..- -...- ..--.."
Esempio n. 3
0
def test_morse_enc8():
    """
    Encoding test 8.

    Input: "ďťňó:@/"
    Output: "-.. - -. --- ---... .--.-. -..-."
    """
    assert morse.morse_code("ďťňó:@/") == "-.. - -. --- ---... .--.-. -..-."
Esempio n. 4
0
def test_morse_enc0():
    """
    Encoding test 0.

    Input: "Ahoj"
    Output: ".- .... --- .---"
    """
    assert morse.morse_code("Ahoj") == ".- .... --- .---"
Esempio n. 5
0
def test_morse_enc6():
    """
    Encoding test 6.

    Input: "ěščřž.,"
    Output: ". ... -.-. .-. --.. .-.-.- --..--"
    """
    assert morse.morse_code("ěščřž.,") == ". ... -.-. .-. --.. .-.-.- --..--"
Esempio n. 6
0
def test_morse_enc5():
    """
    Encoding test 5.

    Input: "56789"
    Output: "..... -.... --... ---.. ----."
    """
    assert morse.morse_code("56789") == "..... -.... --... ---.. ----."
Esempio n. 7
0
def test_morse_enc4():
    """
    Encoding test 4.

    Input: "01234"
    Output: "----- .---- ..--- ...-- ....-"
    """
    assert morse.morse_code("01234") == "----- .---- ..--- ...-- ....-"
Esempio n. 8
0
def test_morse_enc3():
    """
    Encoding test 3.

    Input: "opqrstuv"
    Output: "--- .--. --.- .-. ... - ..- ...-"
    """
    assert morse.morse_code("opqrstuv") == "--- .--. --.- .-. ... - ..- ...-"
Esempio n. 9
0
def test_morse_enc2():
    """
    Encoding test 2.

    Input: "abcdefgh"
    Output: ".- -... -.-. -.. . ..-. --. ...."
    """
    assert morse.morse_code("abcdefgh") == ".- -... -.-. -.. . ..-. --. ...."
Esempio n. 10
0
def test_morse_enc1():
    """
    Encoding test 1.

    Input: "Jak se mas"
    Output: ".--- .- -.- / ... . / -- .- ..."
    """
    assert morse.morse_code("Jak se mas") == ".--- .- -.- / ... . / -- .- ..."