From 6762fe1b2b990b812ce0fb336fff4e4554c05be6 Mon Sep 17 00:00:00 2001 From: Eddy Oyieko <67474838+mobley-trent@users.noreply.github.com> Date: Sat, 30 Dec 2023 09:17:28 +0000 Subject: [PATCH] Updated codegen.rs - `select...where` test --- crates/parser/src/codegen.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/parser/src/codegen.rs b/crates/parser/src/codegen.rs index c4488bef..cbd24561 100644 --- a/crates/parser/src/codegen.rs +++ b/crates/parser/src/codegen.rs @@ -93,6 +93,19 @@ mod tests { ) } + #[test] + fn test_select_with_where() { + test_get_node_properties( + "select 1 from contact where id = 1;", + SyntaxKind::SelectStmt, + vec![ + TokenProperty::from(SyntaxKind::Select), + TokenProperty::from(SyntaxKind::From), + TokenProperty::from(SyntaxKind::Where), + ], + ) + } + #[test] fn test_create_domain() { test_get_node_properties(