Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kitta65 committed Apr 6, 2024
1 parent 60db87e commit 49db0ac
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/parser/tests/tests_ml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ use super::*;
fn test_parse_code_ml() {
let test_cases = vec![
// CREATE MODEL statement
Box::new(SuccessTestCase::new(
// NOTE actually, this is not valid syntax
"\
CREATE OR REPLACE MODEL IF NOT EXISTS ident;
",
"\
self: CREATE (CreateModelStatement)
ident:
self: ident (Identifier)
if_not_exists:
- self: IF (Keyword)
- self: NOT (Keyword)
- self: EXISTS (Keyword)
or_replace:
- self: OR (Keyword)
- self: REPLACE (Keyword)
semicolon:
self: ; (Symbol)
what:
self: MODEL (Keyword)
",
0,
)),
Box::new(SuccessTestCase::new(
// NOTE trailing comma seems to be acceptable
"\
Expand Down

0 comments on commit 49db0ac

Please sign in to comment.