Skip to content

Commit 6762fe1

Browse files
committed
Updated codegen.rs - select...where test
1 parent 9c694d7 commit 6762fe1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/parser/src/codegen.rs

+13
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ mod tests {
9393
)
9494
}
9595

96+
#[test]
97+
fn test_select_with_where() {
98+
test_get_node_properties(
99+
"select 1 from contact where id = 1;",
100+
SyntaxKind::SelectStmt,
101+
vec![
102+
TokenProperty::from(SyntaxKind::Select),
103+
TokenProperty::from(SyntaxKind::From),
104+
TokenProperty::from(SyntaxKind::Where),
105+
],
106+
)
107+
}
108+
96109
#[test]
97110
fn test_create_domain() {
98111
test_get_node_properties(

0 commit comments

Comments
 (0)