()
| 592 | |
| 593 | #[test] |
| 594 | fn splits_on_hyphens() { |
| 595 | let phrase = Search::parse("Existing non-root topic").unwrap(); |
| 596 | assert_eq!( |
| 597 | phrase.tokens, |
| 598 | phrases(&["existing", "non", "root", "topic"]) |
| 599 | ); |
| 600 | } |
| 601 | |
| 602 | #[test] |
| 603 | fn token_length() { |