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

Function test_tokenizer_merged_whitespace

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

Source from the content-addressed store, hash-verified

240
241 #[test]
242 fn test_tokenizer_merged_whitespace() {
243 let tokens: Vec<Token> = Tokenizer::new(b"a b").collect();
244 assert_eq!(tokens.len(), 3);
245 assert_eq!(tokens[1].as_str(), " ");
246 assert_eq!(tokens[1].kind(), TokenKind::Whitespace);
247 }
248
249 #[test]
250 fn test_tokenizer_newline() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected