Skip to content

Instantly share code, notes, and snippets.

@ryanb
Created June 9, 2010 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanb/432263 to your computer and use it in GitHub Desktop.
Save ryanb/432263 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment