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

Function test_tokenizer_only_newlines

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

Source from the content-addressed store, hash-verified

659
660 #[test]
661 fn test_tokenizer_only_newlines() {
662 let tokens: Vec<Token> = Tokenizer::new(b"\n\n\n").collect();
663 assert_eq!(tokens.len(), 3);
664 for token in &tokens {
665 assert_eq!(token.kind(), TokenKind::Newline);
666 }
667 }
668
669 #[test]
670 fn test_tokenizer_mixed_newlines() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected