// This function takes a number and a noun and returns a string representing the noun with the given
// multiplicity (pluralizing if necessary). For example, `count(3, "cow")` becomes "3 cows".
pubfncount(n:usize, noun:&str)-> String{if n ==1{format!("{}{}", n, noun)}else{format!("{}{}s", n, noun)}}#[cfg(test)]modtests{usecrate::count::count;#[test]fncount_zero(){assert_eq!(count(0,"cow"),"0 cows");}#[test]fncount_one(){assert_eq!(count(1,"cow"),"1 cow");}#[test]fncount_two(){assert_eq!(count(2,"cow"),"2 cows");}}