()
| 81 | |
| 82 | #[test] |
| 83 | fn odd() { |
| 84 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 4), 0); |
| 85 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 5), -1); |
| 86 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 6), 1); |
| 87 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 7), 2); |
| 88 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 0), 3); |
| 89 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 1), 4); |
| 90 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 2), 5); |
| 91 | assert_eq!(Solution::search(vec![4,6,7,0,1,2,3], 3), 6); |
| 92 | } |
| 93 | |
| 94 | #[test] |
| 95 | fn even_not_found() { |
nothing calls this directly
no outgoing calls
no test coverage detected