Fix query analysis bugs found in ruby tags query

This commit is contained in:
Max Brunsfeld 2020-08-17 09:57:06 -07:00
parent 1ea29053e1
commit c3f9b2b377
2 changed files with 25 additions and 13 deletions

View file

@ -2310,9 +2310,17 @@ fn test_query_is_definite() {
],
},
Row {
language: get_language("javascript"),
pattern: r#""#,
results_by_symbol: &[],
language: get_language("ruby"),
pattern: r#"
(singleton_class
value: (constant)
"end")
"#,
results_by_symbol: &[
("singleton_class", false),
("constant", false),
("end", true),
],
},
];