use guohongxie_minigrep::{search_sensitive, search_insensitive}; #[test] pub fn search_test() { let args1 = String::from("llo"); let args2 = String::from("hello world"); assert_eq!(vec!["hello world"], search_sensitive(&args1, &args2)); } #[test] pub fn search_test2() { let args1 = String::from("llO"); let args2 = String::from("heLlo world"); assert_eq!(vec!["heLlo world"], search_insensitive(&args1, &args2)); }