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

Function test_replacement_display

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

Source from the content-addressed store, hash-verified

682
683 #[test]
684 fn test_replacement_display() {
685 assert_eq!(format!("{}", Replacement::insertion(5, 5, 3)), "+3@5");
686 assert_eq!(format!("{}", Replacement::deletion(5, 2, 5)), "-2@5");
687 assert_eq!(format!("{}", Replacement::new(5, 2, 5, 3)), "-2+3@5");
688 }
689
690 #[test]
691 fn test_diff_result_new() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected