Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed shameful bug

  • Loading branch information...
commit 5ebd690ec354545285543e5396bcabc2bac957da 1 parent 40abe50
Tomasz Mazur authored
View
2  lib/verbal/english/numbers.rb
@@ -28,7 +28,7 @@ module Numbers
10 => 'ten',
20 => 'twenty',
30 => 'thirty',
- 40 => 'fourty',
+ 40 => 'forty',
50 => 'fifty',
60 => 'sixty',
70 => 'seventy',
View
1  spec/unit/english/numbers_spec.rb
@@ -5,6 +5,7 @@
Verbal::English::Numbers.to_words(9).should == "nine"
Verbal::English::Numbers.to_words(109).should == "one hundred nine"
Verbal::English::Numbers.to_words(34).should == "thirty-four"
+ Verbal::English::Numbers.to_words(44).should == "forty-four"
Verbal::English::Numbers.to_words(2_001).should == "two thousand and one"
Verbal::English::Numbers.to_words(1_134).should == "one thousand one hundred and thirty-four"
end
Please sign in to comment.
Something went wrong with that request. Please try again.