diff options
| author | mo8it <mo8it@proton.me> | 2024-06-21 22:31:06 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-21 22:31:06 +0200 |
| commit | 1264510fc04de85efc0e2caf17aaa85354b6bffd (patch) | |
| tree | 4837b32cdf2fc86bca7f17df607042b977263450 /exercises/07_structs | |
| parent | ef842d3a946f477a32e26b9674cc5488cd629030 (diff) | |
structs2 solution
Diffstat (limited to 'exercises/07_structs')
| -rw-r--r-- | exercises/07_structs/structs2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/07_structs/structs2.rs b/exercises/07_structs/structs2.rs index 451dbe7..79141af 100644 --- a/exercises/07_structs/structs2.rs +++ b/exercises/07_structs/structs2.rs @@ -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); |
