//! Your task is to create the missing structs and fill in the missing parts of //! the tests. Read the chapter about structs (whether you need help or not) //! https://doc.rust-lang.org/book/ // TODO define ColorClassicStruct, ColorTupleStruct and UnitStruct #[derive(Debug)] struct ___; #[cfg(test)] mod tests { use super::*; #[test] fn classic_structs() { let green = ColorClassicStruct { name: "green".to_string(), hex: "#00FF00".to_string(), }; assert_eq!(green.name, "green"); assert_eq!(green.hex, "#00FF00"); } #[test] fn tuple_structs() { // TODO: Instantiate a tuple struct! let green = ColorTupleStruct(___); assert_eq!(green.0, "green"); assert_eq!(green.1, "#00FF00"); } #[test] fn unit_structs() { // TODO: Instantiate a unit struct! let unit_struct = ___; let message = format!("{:?}s are fun!", unit_struct); assert_eq!(message, "UnitStructs are fun!"); } }