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

Function test_tokenizer_special_chars

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

Source from the content-addressed store, hash-verified

688
689 #[test]
690 fn test_tokenizer_special_chars() {
691 let code = b"@decorator #macro $var";
692 let tokens: Vec<Token> = Tokenizer::new(code).collect();
693
694 // @ # $ are punctuation
695 assert!(tokens.iter().any(|t| t.as_str() == "@"));
696 assert!(tokens.iter().any(|t| t.as_str() == "#"));
697 assert!(tokens.iter().any(|t| t.as_str() == "$"));
698 }
699
700 #[test]
701 fn test_tokenizer_unicode_in_other() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected