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

Function test_detect_utf8_ascii

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

Source from the content-addressed store, hash-verified

326
327 #[test]
328 fn test_detect_utf8_ascii() {
329 // Pure ASCII is valid UTF-8
330 let content = b"Hello, World!\nThis is a test.";
331 assert_eq!(Encoding::detect(content), Encoding::Utf8);
332 }
333
334 #[test]
335 fn test_detect_utf8_multibyte() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected