Skip to content

Commit

Permalink
[#138] parser::common 테스트케이스 보충
Browse files Browse the repository at this point in the history
  • Loading branch information
myyrakle committed Aug 12, 2024
1 parent c0e17b4 commit 5aa4cc1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/parser/test/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5aa4cc1

Please sign in to comment.