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

Function test_lis_single

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

Source from the content-addressed store, hash-verified

543
544 #[test]
545 fn test_lis_single() {
546 let matches = vec![UniqueMatch {
547 old_idx: 5,
548 new_idx: 3,
549 }];
550 let lis = longest_increasing_subsequence(&matches);
551 assert_eq!(lis.len(), 1);
552 }
553
554 #[test]
555 fn test_lis_all_increasing() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected