From c637c55e423266426da861fa9d26436f8f812b15 Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 11 Apr 2022 14:21:28 +0200 Subject: [PATCH] Add more tests for 100% coverage. --- tests/integer_to_roman.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integer_to_roman.rs b/tests/integer_to_roman.rs index eec999c..02e2633 100644 --- a/tests/integer_to_roman.rs +++ b/tests/integer_to_roman.rs @@ -5,6 +5,9 @@ use test_case::test_case; #[test_case(0, ""; "minimum")] #[test_case(3999, "MMMCMXCIX"; "maximum")] #[test_case(1666, "MDCLXVI"; "every character")] +#[test_case(1987, "MCMLXXXVII"; "all numbers 1")] +#[test_case(2654, "MMDCLIV"; "all numbers 2")] +#[test_case(321, "CCCXXI"; "all numbers 3")] #[test_case(900, "CM"; "with subtracting")] #[test_case(20, "XX"; "without subtracting")] fn test_integer_to_roman(input: i32, expected: &str) {