Skip to content

Commit

Permalink
roman-numerals: sync (#1894)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
senekor authored Apr 3, 2024
1 parent 13fb84c commit 2af9fe0
Show file tree
Hide file tree
Showing 3 changed files with 13 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,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"
9 changes: 9 additions & 0 deletions exercises/practice/roman-numerals/tests/roman-numerals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ fn number_3001_is_mmmi() {
assert_eq!(output, expected);
}

#[test]
#[ignore]
fn number_3888_is_mmmdccclxxxviii() {
let input = 3888;
let output = Roman::from(input).to_string();
let expected = "MMMDCCCLXXXVIII";
assert_eq!(output, expected);
}

#[test]
#[ignore]
fn number_3999_is_mmmcmxcix() {
Expand Down

0 comments on commit 2af9fe0

Please sign in to comment.