We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 815edb7 commit 05a753fCopy full SHA for 05a753f
exercises/structs/structs3.rs
@@ -57,6 +57,16 @@ mod tests {
57
assert!(package.is_international());
58
}
59
60
+ #[test]
61
+ fn create_local_package() {
62
+ let sender_country = String::from("Canada");
63
+ let recipient_country = sender_country.clone();
64
+
65
+ let package = Package::new(sender_country, recipient_country, 1200);
66
67
+ assert!(!package.is_international());
68
+ }
69
70
#[test]
71
fn calculate_transport_fees() {
72
let sender_country = String::from("Spain");
0 commit comments