structs2 solution

This commit is contained in:
mo8it
2024-06-21 22:31:06 +02:00
parent ef842d3a94
commit 1264510fc0
3 changed files with 54 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,3 @@
// Address all the TODOs to make the tests pass!
#[derive(Debug)]
struct Order {
name: String,
@@ -34,8 +32,10 @@ mod tests {
#[test]
fn your_order() {
let order_template = create_order_template();
// TODO: Create your own order using the update syntax and template above!
// let your_order =
assert_eq!(your_order.name, "Hacker in Rust");
assert_eq!(your_order.year, order_template.year);
assert_eq!(your_order.made_by_phone, order_template.made_by_phone);