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

Function test_replacement_new

atomic-core/src/diff/ops.rs:642–648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

640
641 #[test]
642 fn test_replacement_new() {
643 let r = Replacement::new(10, 2, 10, 3);
644 assert_eq!(r.old, 10);
645 assert_eq!(r.old_len, 2);
646 assert_eq!(r.new, 10);
647 assert_eq!(r.new_len, 3);
648 }
649
650 #[test]
651 fn test_replacement_insert_only() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected