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.119 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.118 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.117 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.116 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.115 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.114 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.113 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.111 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.110 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.109 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.108 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.107 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.106 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.105 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.104 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.103 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.102 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.101 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.100 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el
trackler-2.2.1.99 tracks/elisp/exercises/roman-numerals/roman-numerals-test.el