use minigrep; #[test] fn one_result() { let query = "duct"; let contents = "safe,fast,productive."; assert_eq!( vec!["safe,fast,productive."], minigrep::search(query, contents) ); } #[test] fn case_insensitive() { let query = "rUsT"; let contents = " Rust: safe, fast, productive. Pick three. Trust me."; assert_eq!( vec!["Rust:", "Trust me."], minigrep::search_case_insensitive(query, contents) ); }