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

Function test_equals_lenient

atomic-core/src/diff/line.rs:471–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

469
470 #[test]
471 fn test_equals_lenient() {
472 let line1 = Line::new(b"hello\n");
473 let line2 = Line::new(b"hello");
474 // Lenient comparison: same content
475 assert!(line1.equals(&line2, false));
476 // Strict comparison: different
477 assert!(!line1.equals(&line2, true));
478 }
479
480 #[test]
481 fn test_hash_consistency() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected