def test_decoder_with_space(): code = ".- ...- ..--- .-- .... .. . -.-. -..- ....- ....." assert decoder(code) == "AV2WHIECX 45"
def test_decoder(): code = "-... .... ...--" assert decoder(code) == "BH3"