Sha256: 28fa9ab55de2d8da01a18f2fbb64c99ab1f61d9f33506bab84d0a1aa0d83d560

Contents?: true

Size: 943 Bytes

Versions: 395

Compression:

Stored size: 943 Bytes

Contents

;;; roman-numerals-test.el --- Tests for roman-numerals (exercism)

;;; Commentary:

;;; Code:

(load-file "roman-numerals.el")

(ert-deftest roman-numerals-test ()
  (should (equal (to-roman 1) "I"))
  (should (equal (to-roman 2) "II"))
  (should (equal (to-roman 3) "III"))
  (should (equal (to-roman 4) "IV"))
  (should (equal (to-roman 5) "V"))
  (should (equal (to-roman 6) "VI"))
  (should (equal (to-roman 9) "IX"))
  (should (equal (to-roman 27) "XXVII"))
  (should (equal (to-roman 48) "XLVIII"))
  (should (equal (to-roman 59) "LIX"))
  (should (equal (to-roman 93) "XCIII"))
  (should (equal (to-roman 141) "CXLI"))
  (should (equal (to-roman 163) "CLXIII"))
  (should (equal (to-roman 402) "CDII"))
  (should (equal (to-roman 575) "DLXXV"))
  (should (equal (to-roman 911) "CMXI"))
  (should (equal (to-roman 1024) "MXXIV"))
  (should (equal (to-roman 3000) "MMM")))

(provide 'roman-numerals)
;;; roman-numerals-test.el ends here

Version data entries

395 entries across 395 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.179 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.178 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.177 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.176 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.175 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.174 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.173 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.172 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.171 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.170 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.169 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.167 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.166 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.165 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.164 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.163 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.162 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.161 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.160 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el