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

Function test_tokenizer_mixed_newlines

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

Source from the content-addressed store, hash-verified

668
669 #[test]
670 fn test_tokenizer_mixed_newlines() {
671 let tokens: Vec<Token> = Tokenizer::new(b"\n\r\n\n").collect();
672 assert_eq!(tokens.len(), 3);
673 assert_eq!(tokens[0].as_str(), "\n");
674 assert_eq!(tokens[1].as_str(), "\r\n");
675 assert_eq!(tokens[2].as_str(), "\n");
676 }
677
678 #[test]
679 fn test_tokenizer_unterminated_string() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected