Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "test/unit"
- class MaskTest < Test::Unit::TestCase
- def test_morse
- assert_equal ".-", morse("a")
- assert_equal "-...", morse("b")
- assert_equal "......-...-..--- .-----.-..-..-..", morse("Hello World")
- end
- end
Add Comment
Please, Sign In to add comment