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

Function test_detect_encoding_utf8

atomic-repository/src/semantic_regen.rs:859–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

857
858 #[test]
859 fn test_detect_encoding_utf8() {
860 assert_eq!(detect_encoding(b"hello world"), Encoding::Utf8);
861 assert_eq!(detect_encoding(b"fn main() {}"), Encoding::Utf8);
862 assert_eq!(detect_encoding("日本語".as_bytes()), Encoding::Utf8);
863 }
864
865 #[test]
866 fn test_detect_encoding_binary() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected