()
| 553 | |
| 554 | #[test] |
| 555 | fn test_lis_all_increasing() { |
| 556 | let matches = vec![ |
| 557 | UniqueMatch { |
| 558 | old_idx: 0, |
| 559 | new_idx: 0, |
| 560 | }, |
| 561 | UniqueMatch { |
| 562 | old_idx: 1, |
| 563 | new_idx: 1, |
| 564 | }, |
| 565 | UniqueMatch { |
| 566 | old_idx: 2, |
| 567 | new_idx: 2, |
| 568 | }, |
| 569 | ]; |
| 570 | |
| 571 | let lis = longest_increasing_subsequence(&matches); |
| 572 | |
| 573 | assert_eq!(lis.len(), 3); |
| 574 | } |
| 575 | |
| 576 | #[test] |
| 577 | fn test_lis_all_decreasing() { |
nothing calls this directly
no test coverage detected