summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exercises/structs/structs3.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs
index 06fcaf2..f18cc92 100644
--- a/exercises/structs/structs3.rs
+++ b/exercises/structs/structs3.rs
@@ -58,6 +58,16 @@ mod tests {
}
#[test]
+ fn create_local_package() {
+ let sender_country = String::from("Canada");
+ let recipient_country = sender_country.clone();
+
+ let package = Package::new(sender_country, recipient_country, 1200);
+
+ assert!(!package.is_international());
+ }
+
+ #[test]
fn calculate_transport_fees() {
let sender_country = String::from("Spain");
let recipient_country = String::from("Spain");