add negative parsing to existing test

This commit is contained in:
Niko Matsakis 2017-03-30 05:03:26 -06:00
parent e0725251d0
commit 243e9983cf

View File

@ -415,6 +415,8 @@ fn generics_issue_104_test1() {
#[test]
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("INSERT foo").is_ok());
assert!(match_section::parse_Query("UPDATE foo").is_ok());
assert!(match_section::parse_Query("UPDATE update").is_err());
}