()
| 67 | |
| 68 | #[test] |
| 69 | fn quick3way() { |
| 70 | // empty |
| 71 | let mut data: Vec<&str> = vec![]; |
| 72 | Quick3Way::sort(&mut data); |
| 73 | assert!(data.is_sorted()); |
| 74 | |
| 75 | // normal |
| 76 | let i = SHELLS; |
| 77 | let mut data = extract_words(i); |
| 78 | Quick3Way::sort(&mut data); |
| 79 | assert!(data.is_sorted()); |
| 80 | } |
| 81 | |
| 82 | // also fine for sorted data |
| 83 | #[test] |
nothing calls this directly
no test coverage detected