Skip to content

Commit

Permalink
Add test case for negative to positive range (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbergkvist authored Dec 27, 2024
1 parent f7259fb commit 078cdf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions challenges/find-the-first-palindrome/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit 078cdf6

Please sign in to comment.