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

Function test_tokenizer_single_word

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

Source from the content-addressed store, hash-verified

220
221 #[test]
222 fn test_tokenizer_single_word() {
223 let tokens: Vec<Token> = Tokenizer::new(b"hello").collect();
224 assert_eq!(tokens.len(), 1);
225 assert_eq!(tokens[0].as_str(), "hello");
226 assert_eq!(tokens[0].kind(), TokenKind::Word);
227 }
228
229 #[test]
230 fn test_tokenizer_words_and_spaces() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected