mirror of https://github.com/djcb/mu.git
document: cosmetic
This commit is contained in:
parent
810b9643f4
commit
ca8836b631
|
@ -214,6 +214,7 @@ static Sexp
|
||||||
make_emacs_time_sexp(::time_t t)
|
make_emacs_time_sexp(::time_t t)
|
||||||
{
|
{
|
||||||
Sexp::List dlist;
|
Sexp::List dlist;
|
||||||
|
|
||||||
dlist.add(Sexp::make_number(static_cast<unsigned>(t >> 16)));
|
dlist.add(Sexp::make_number(static_cast<unsigned>(t >> 16)));
|
||||||
dlist.add(Sexp::make_number(static_cast<unsigned>(t & 0xffff)));
|
dlist.add(Sexp::make_number(static_cast<unsigned>(t & 0xffff)));
|
||||||
dlist.add(Sexp::make_number(0));
|
dlist.add(Sexp::make_number(0));
|
||||||
|
@ -401,8 +402,10 @@ test_bcc()
|
||||||
doc.add(Field::Id::Bcc, test_contacts);
|
doc.add(Field::Id::Bcc, test_contacts);
|
||||||
|
|
||||||
Contacts expected_contacts = {{
|
Contacts expected_contacts = {{
|
||||||
Contact{"john@example.com", "John", Contact::Type::Bcc},
|
Contact{"john@example.com", "John",
|
||||||
Contact{"ringo@example.com", "Ringo", Contact::Type::Bcc},
|
Contact::Type::Bcc},
|
||||||
|
Contact{"ringo@example.com", "Ringo",
|
||||||
|
Contact::Type::Bcc},
|
||||||
}};
|
}};
|
||||||
const auto actual_contacts = doc.contacts_value(Field::Id::Bcc);
|
const auto actual_contacts = doc.contacts_value(Field::Id::Bcc);
|
||||||
assert_same_contacts(expected_contacts, actual_contacts);
|
assert_same_contacts(expected_contacts, actual_contacts);
|
||||||
|
@ -411,8 +414,10 @@ test_bcc()
|
||||||
{
|
{
|
||||||
Document doc;
|
Document doc;
|
||||||
Contacts contacts = {{
|
Contacts contacts = {{
|
||||||
Contact{"john@example.com", "John Lennon", Contact::Type::Bcc},
|
Contact{"john@example.com", "John Lennon",
|
||||||
Contact{"ringo@example.com", "Ringo", Contact::Type::Bcc},
|
Contact::Type::Bcc},
|
||||||
|
Contact{"ringo@example.com", "Ringo",
|
||||||
|
Contact::Type::Bcc},
|
||||||
}};
|
}};
|
||||||
doc.add(Field::Id::Bcc, contacts);
|
doc.add(Field::Id::Bcc, contacts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue