MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_lis_all_increasing

Function test_lis_all_increasing

atomic-core/src/diff/patience.rs:555–574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected