#[cfg(test)]/// # Group Anagramspubmodtest_49{usestd::collections::HashMap;structSolution;implSolution{pubfngroup_anagrams(strs:Vec<String>)->Vec<Vec<String>>{letmutmap=HashMap::<Vec<u8>,Vec<String>>::new();forstrinstrs{letmutsorted=str.as_bytes().to_vec();sorted.sort_unstable();map.entry(sorted).or_default().push(str);}map.into_values().collect()}}#[test]fntest_p49(){// You can use `assert_eq!(target,Solution::function(args))` to call the functionletinput=vec!["eat".to_string(),"tea".to_string(),"tan".to_string(),"ate".to_string(),"nat".to_string(),"bat".to_string(),];letmutans=Solution::group_anagrams(input);ans.sort();assert_eq!(ans,vec![vec!["bat"],vec!["eat","tea","ate"],vec!["tan","nat"]])}}