MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / tokenize_dotdot_range

Function tokenize_dotdot_range

nodedb-sql/src/parser/array_stmt/lexer.rs:236–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235 #[test]
236 fn tokenize_dotdot_range() {
237 let toks = tokenize("[0..23]").unwrap();
238 assert!(matches!(toks[1].tok, Tok::Int(0)));
239 assert!(matches!(toks[2].tok, Tok::DotDot));
240 assert!(matches!(toks[3].tok, Tok::Int(23)));
241 }
242
243 #[test]
244 fn tokenize_negative() {

Callers

nothing calls this directly

Calls 1

tokenizeFunction · 0.70

Tested by

no test coverage detected