Skip to content

Commit

Permalink
Corrected tests
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed Feb 10, 2024
1 parent 57a66c1 commit 0a61130
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/cruncher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,13 +867,13 @@ mod tests {

#[test]
fn den_to_roman_test() {
assert_eq!(numerics_to_text::den_to_roman("5"), "V");
assert_eq!(numerics_to_text::den_to_roman("10"), "X");
assert_eq!(numerics_to_text::den_to_roman("12"), "XII");
assert_eq!(numerics_to_text::den_to_roman("57"), "LVII");
assert_eq!(numerics_to_text::den_to_roman("2002"), "MMII");
assert_eq!(numerics_to_text::den_to_roman("5"), "");
assert_eq!(numerics_to_text::den_to_roman("10"), "");
assert_eq!(numerics_to_text::den_to_roman("12"), "ⅩⅡ");
assert_eq!(numerics_to_text::den_to_roman("57"), "ⅬⅦ");
assert_eq!(numerics_to_text::den_to_roman("2002"), "ⅯⅯⅡ");
}

#[bench]
fn den_to_roman_bench(b: &mut Bencher) {
b.iter(|| numerics_to_text::den_to_roman("2002"));
Expand Down

0 comments on commit 0a61130

Please sign in to comment.