This is small, one-day project to test some Scala stuff.
Converter provides easy way to transform Arabic numbers to Roman numerals and vice versa.
Inspired by XSolve Code Kata #1.
More info on my blog post.
Basically it is enough that you instantiate one of ConvertableNum
case classes and execute convert
.
val arabic = ArabicNum(2014)
val roman = arabic.convert
roman == RomanNum("MMXIV") // true