exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

roman-numerals-test.el (943B)


      1 ;;; roman-numerals-test.el --- Tests for roman-numerals (exercism)
      2 
      3 ;;; Commentary:
      4 
      5 ;;; Code:
      6 
      7 (load-file "roman-numerals.el")
      8 
      9 (ert-deftest roman-numerals-test ()
     10   (should (equal (to-roman 1) "I"))
     11   (should (equal (to-roman 2) "II"))
     12   (should (equal (to-roman 3) "III"))
     13   (should (equal (to-roman 4) "IV"))
     14   (should (equal (to-roman 5) "V"))
     15   (should (equal (to-roman 6) "VI"))
     16   (should (equal (to-roman 9) "IX"))
     17   (should (equal (to-roman 27) "XXVII"))
     18   (should (equal (to-roman 48) "XLVIII"))
     19   (should (equal (to-roman 59) "LIX"))
     20   (should (equal (to-roman 93) "XCIII"))
     21   (should (equal (to-roman 141) "CXLI"))
     22   (should (equal (to-roman 163) "CLXIII"))
     23   (should (equal (to-roman 402) "CDII"))
     24   (should (equal (to-roman 575) "DLXXV"))
     25   (should (equal (to-roman 911) "CMXI"))
     26   (should (equal (to-roman 1024) "MXXIV"))
     27   (should (equal (to-roman 3000) "MMM")))
     28 
     29 (provide 'roman-numerals)
     30 ;;; roman-numerals-test.el ends here