Skip to content

Commit 876a579

Browse files
authored
queryparser: add field respecification test (#2550)
1 parent 4c52499 commit 876a579

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

query-grammar/src/query_grammar.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,11 @@ mod test {
14971497
test_is_parse_err(r#"field:(+a -"b c""#, r#"(+"field":a -"field":"b c")"#);
14981498
}
14991499

1500+
#[test]
1501+
fn field_re_specification() {
1502+
test_parse_query_to_ast_helper(r#"field:(abc AND b:cde)"#, r#"(+"field":abc +"b":cde)"#);
1503+
}
1504+
15001505
#[test]
15011506
fn test_parse_query_single_term() {
15021507
test_parse_query_to_ast_helper("abc", "abc");

0 commit comments

Comments
 (0)