From f30663cc7c9afbff76aedf4775abd76746df6dae Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Wed, 24 Apr 2019 11:41:24 +0200 Subject: [PATCH] Update a test --- acmed/src/acme_proto/structs/account.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/acmed/src/acme_proto/structs/account.rs b/acmed/src/acme_proto/structs/account.rs index 09d490c..cc14f29 100644 --- a/acmed/src/acme_proto/structs/account.rs +++ b/acmed/src/acme_proto/structs/account.rs @@ -72,10 +72,14 @@ mod tests { #[test] fn test_account_new() { let emails = vec![ - "derp@example.com".to_string(), - "derp.derpson@example.com".to_string(), + "mailto:derp@example.com".to_string(), + "mailto:derp.derpson@example.com".to_string(), ]; - let a = Account::new(&emails); + let a = Account { + contact: emails, + terms_of_service_agreed: true, + only_return_existing: false, + }; assert_eq!(a.contact.len(), 2); assert_eq!(a.terms_of_service_agreed, true); assert_eq!(a.only_return_existing, false);