Created
November 17, 2014 14:51
-
-
Save tamizhgeek/06f923330b130d701d09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import assignments.NumberToWords | |
import org.scalatest.{ShouldMatchers, FlatSpec} | |
class NumberToWordsTest extends FlatSpec with ShouldMatchers{ | |
it should "convert numbers to words in required format" in { | |
val number = new NumberToWords(104536) | |
number.numForWords shouldBe "one-zero-four-five-three-six" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment