Browse Source

Update a test

pull/5/head
Rodolphe Breard 6 years ago
parent
commit
f30663cc7c
  1. 10
      acmed/src/acme_proto/structs/account.rs

10
acmed/src/acme_proto/structs/account.rs

@ -72,10 +72,14 @@ mod tests {
#[test] #[test]
fn test_account_new() { fn test_account_new() {
let emails = vec![ 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.contact.len(), 2);
assert_eq!(a.terms_of_service_agreed, true); assert_eq!(a.terms_of_service_agreed, true);
assert_eq!(a.only_return_existing, false); assert_eq!(a.only_return_existing, false);

Loading…
Cancel
Save