Skip to content

Commit f4129e0

Browse files
end test
1 parent 1ebe9b5 commit f4129e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/pgt_statement_splitter/src/parser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ mod tests {
196196
);
197197
"#;
198198
let tokens = pgt_lexer::lex(sql).unwrap();
199+
let total_num_tokens = tokens.len();
199200

200201
let mut parser = Parser::new(tokens);
201202

@@ -223,5 +224,8 @@ mod tests {
223224
assert_eq!(parser.current_pos, pos);
224225
parser.advance();
225226
}
227+
228+
assert_eq!(parser.current().kind, SyntaxKind::Eof);
229+
assert_eq!(parser.current_pos, total_num_tokens);
226230
}
227231
}

0 commit comments

Comments
 (0)