Skip to content

Commit

Permalink
Sync roman-numerals tests (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Jun 9, 2024
1 parent 781d736 commit 0285448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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,5 +84,8 @@ description = "3000 is MMM"
[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"
6 changes: 6 additions & 0 deletions exercises/practice/roman-numerals/source/roman_numerals.d
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ unittest
assert("MMMI" == convert(3001));
}

// three_thousand_eight_hundred_eighty_eight_yields_MMMDCCCLXXXVIII
{
writefln("Conversion of 3888: %s", convert(3888));
assert("MMMDCCCLXXXVIII" == convert(3888));
}

// three_thousand_nine_hundred_ninety_nine_yields_MMMCMXCIX
{
writefln("Conversion of 3999: %s", convert(3999));
Expand Down

0 comments on commit 0285448

Please sign in to comment.