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

Function test_tokenizer_only_whitespace

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

Source from the content-addressed store, hash-verified

651
652 #[test]
653 fn test_tokenizer_only_whitespace() {
654 let tokens: Vec<Token> = Tokenizer::new(b" \t ").collect();
655 assert_eq!(tokens.len(), 1);
656 assert_eq!(tokens[0].kind(), TokenKind::Whitespace);
657 assert_eq!(tokens[0].as_str(), " \t ");
658 }
659
660 #[test]
661 fn test_tokenizer_only_newlines() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected