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

Function test_detect_latin1

atomic-core/src/change/encoding.rs:368–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366
367 #[test]
368 fn test_detect_latin1() {
369 // High bytes that aren't valid UTF-8
370 let content = b"Caf\xe9"; // "Café" in Latin-1
371 assert_eq!(Encoding::detect(content), Encoding::Latin1);
372 }
373
374 #[test]
375 fn test_detect_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected