Skip to content

Commit

Permalink
[STEP 7] Added specification for translating numbers 10 to 19
Browse files Browse the repository at this point in the history
* The tests are RED ...
* ... and implementation goes into the next step
  • Loading branch information
karmi committed Jan 18, 2010
1 parent 6149690 commit e39e6bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/numbers_to_words_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,21 @@ class NumbersToWordsTest < Test::Unit::TestCase

# ---------------------------------------------------------------------------

context "Numbers 10 to 19" do

should "translate to words" do
assert_equal 'ten', 10.to_words
assert_equal 'eleven', 11.to_words
assert_equal 'fourteen', 14.to_words
assert_equal 'fifteen', 15.to_words
assert_equal 'sixteen', 16.to_words
assert_equal 'seventeen', 17.to_words
assert_equal 'eighteen', 18.to_words
assert_equal 'nineteen', 19.to_words
end

end

# ---------------------------------------------------------------------------

end

0 comments on commit e39e6bc

Please sign in to comment.