diff --git a/challenges/find-the-first-palindrome/tests/tests.rs b/challenges/find-the-first-palindrome/tests/tests.rs index 49f8086..a6dc998 100644 --- a/challenges/find-the-first-palindrome/tests/tests.rs +++ b/challenges/find-the-first-palindrome/tests/tests.rs @@ -26,4 +26,9 @@ mod tests { fn test_find_first_palindrome_edge_case() { assert_eq!(find_first_palindrome(1, 1), Some(1)); } + + #[test] + fn test_find_first_palindrome_negative_range() { + assert_eq!(find_first_palindrome(-1, 1), Some(0)); + } }