()
| 69 | |
| 70 | #[test] |
| 71 | fn even() { |
| 72 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 4), 0); |
| 73 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 5), 1); |
| 74 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 6), 2); |
| 75 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 7), 3); |
| 76 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 0), 4); |
| 77 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 1), 5); |
| 78 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 2), 6); |
| 79 | assert_eq!(Solution::search(vec![4,5,6,7,0,1,2,3], 3), 7); |
| 80 | } |
| 81 | |
| 82 | #[test] |
| 83 | fn odd() { |
nothing calls this directly
no outgoing calls
no test coverage detected