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

Function test_tokenizer_javascript_arrow

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

Source from the content-addressed store, hash-verified

782
783 #[test]
784 fn test_tokenizer_javascript_arrow() {
785 let code = b"const sum = (a, b) => a + b;";
786 let tokens: Vec<Token> = Tokenizer::new(code).collect();
787
788 assert!(tokens.iter().any(|t| t.as_str() == "=>"));
789 assert!(tokens.iter().any(|t| t.as_str() == "const"));
790 }
791
792 #[test]
793 fn test_tokenizer_python_style() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected