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

Function test_tokenizer_unicode_in_other

atomic-core/src/diff/token/tests.rs:701–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

699
700 #[test]
701 fn test_tokenizer_unicode_in_other() {
702 let code = "café".as_bytes();
703 let tokens: Vec<Token> = Tokenizer::new(code).collect();
704
705 // ASCII part is Word, then 'é' bytes are Other
706 assert!(!tokens.is_empty());
707 }
708
709 // Tokenizer convenience method tests
710

Callers

nothing calls this directly

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected