()
| 266 | |
| 267 | #[test] |
| 268 | fn url_search() { |
| 269 | let f = Fixtures::copy("simple"); |
| 270 | let root = ExternalId::root_topic(); |
| 271 | |
| 272 | let matches = search( |
| 273 | &f, |
| 274 | &root, |
| 275 | "https://en.wikipedia.org/wiki/Climate_change", |
| 276 | true, |
| 277 | ); |
| 278 | assert_eq!(count(Kind::Topic, &matches), 0); |
| 279 | assert_eq!(count(Kind::Link, &matches), 1); |
| 280 | } |
| 281 | |
| 282 | #[test] |
| 283 | fn search_works_across_prefixes() { |