diff --git a/src/parser/test/common.rs b/src/parser/test/common.rs index 9538408..ec541bb 100644 --- a/src/parser/test/common.rs +++ b/src/parser/test/common.rs @@ -401,6 +401,12 @@ fn test_has_if_not_exists() { expected: false, want_error: true, }, + TestCase { + name: "IF NULL".into(), + input: vec![Token::If, Token::Null], + expected: false, + want_error: true, + }, TestCase { name: "IF".into(), input: vec![Token::If], @@ -1177,6 +1183,11 @@ fn test_get_next_join_type() { input: vec![Token::Full, Token::Outer, Token::Select], expected: None, }, + TestCase { + name: "Full Delete".into(), + input: vec![Token::Full, Token::Delete], + expected: None, + }, ]; for t in test_cases { @@ -1228,6 +1239,12 @@ fn test_parse_table_alias() { expected: "foo".into(), want_error: false, }, + TestCase { + name: "foo".into(), + input: vec![Token::Identifier("foo".into())], + expected: "foo".into(), + want_error: false, + }, ]; for t in test_cases {