()
| 360 | |
| 361 | #[test] |
| 362 | fn palindrome() { |
| 363 | assert!(palindrome::is_palindrome("")); |
| 364 | assert!(palindrome::is_palindrome("a")); |
| 365 | assert!(palindrome::is_palindrome("aba")); |
| 366 | assert!(palindrome::is_palindrome("abba")); |
| 367 | assert!(!palindrome::is_palindrome("abc")); |
| 368 | assert!(!palindrome::is_palindrome("abab")); |
| 369 | } |
| 370 | |
| 371 | fn extract_words(i: &str) -> Vec<&str> { |
| 372 | i.split_whitespace().collect() |
nothing calls this directly
no outgoing calls
no test coverage detected