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

Function test_equality_newline_matters

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

Source from the content-addressed store, hash-verified

461
462 #[test]
463 fn test_equality_newline_matters() {
464 let line1 = Line::new(b"hello\n");
465 let line2 = Line::new(b"hello");
466 // Strict equality: they're different
467 assert_ne!(line1, line2);
468 }
469
470 #[test]
471 fn test_equals_lenient() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected