mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-04-01 07:51:03 +00:00
add negative parsing to existing test
This commit is contained in:
parent
e0725251d0
commit
243e9983cf
@ -415,6 +415,8 @@ fn generics_issue_104_test1() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn match_section() {
|
fn match_section() {
|
||||||
assert!(match_section::parse_Query("SELECT foo").is_ok());
|
assert!(match_section::parse_Query("SELECT foo").is_ok());
|
||||||
|
assert!(match_section::parse_Query("select foo").is_ok());
|
||||||
assert!(match_section::parse_Query("INSERT foo").is_ok());
|
assert!(match_section::parse_Query("INSERT foo").is_ok());
|
||||||
assert!(match_section::parse_Query("UPDATE foo").is_ok());
|
assert!(match_section::parse_Query("UPDATE foo").is_ok());
|
||||||
|
assert!(match_section::parse_Query("UPDATE update").is_err());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user