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

Function test_detect_utf8_multibyte

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

Source from the content-addressed store, hash-verified

333
334 #[test]
335 fn test_detect_utf8_multibyte() {
336 // UTF-8 with multi-byte characters
337 let content = "Hello, 世界! Привет! 🎉".as_bytes();
338 assert_eq!(Encoding::detect(content), Encoding::Utf8);
339 }
340
341 #[test]
342 fn test_detect_utf8_bom() {

Callers

nothing calls this directly

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected