Skip to content

Commit

Permalink
Add new exercise to roman-numerals
Browse files Browse the repository at this point in the history
  • Loading branch information
verdammelt committed Apr 3, 2024
1 parent 6d0a0bf commit c057da2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions exercises/practice/roman-numerals/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ description = "1666 is MDCLXVI"
[3bc4b41c-c2e6-49d9-9142-420691504336]
description = "3001 is MMMI"

[2f89cad7-73f6-4d1b-857b-0ef531f68b7e]
description = "3888 is MMMDCCCLXXXVIII"

[4e18e96b-5fbb-43df-a91b-9cb511fe0856]
description = "3999 is MMMCMXCIX"

4 changes: 3 additions & 1 deletion exercises/practice/roman-numerals/roman-numerals-test.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@
(test test-3001
(is (string= "MMMI" (roman-numerals:romanize 3001))))

(test test-3888
(is (string= "MMMDCCCLXXXVIII" (roman-numerals:romanize 3888))))

(test test-3999
(is (string= "MMMCMXCIX" (roman-numerals:romanize 3999))))

(defun run-tests (&optional (test-or-suite 'roman-numerals-suite))
"Provides human readable results of test run. Default to entire suite."
(run! test-or-suite))

0 comments on commit c057da2

Please sign in to comment.