use minigrep_jimloop; #[test] fn search_case_insensitive(){ let query = "duct"; let contents = "\ Rust: safe, fast, productive. Pick three. Duct tape."; assert_eq!(vec!["safe, fast, productive."], minigrep_jimloop::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_jimloop::search_case_insensitive(query, contents)); }