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

Function test_detect_two_bytes

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

Source from the content-addressed store, hash-verified

551
552 #[test]
553 fn test_detect_two_bytes() {
554 // Two bytes that look like UTF-16 BOM
555 assert_eq!(Encoding::detect(b"\xff\xfe"), Encoding::Utf16Le);
556 assert_eq!(Encoding::detect(b"\xfe\xff"), Encoding::Utf16Be);
557 }
558}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected