()
| 197 | |
| 198 | #[test] |
| 199 | fn parse_and_two_terms() { |
| 200 | let q = parse_tsquery("rust & lang").unwrap(); |
| 201 | assert_eq!( |
| 202 | q, |
| 203 | FtsQuery::And(vec![ |
| 204 | FtsQuery::Plain { |
| 205 | text: "rust".into(), |
| 206 | fuzzy: false |
| 207 | }, |
| 208 | FtsQuery::Plain { |
| 209 | text: "lang".into(), |
| 210 | fuzzy: false |
| 211 | }, |
| 212 | ]) |
| 213 | ); |
| 214 | } |
| 215 | |
| 216 | #[test] |
| 217 | fn parse_or_two_terms() { |
nothing calls this directly
no test coverage detected