From: Pietro Cerutti Date: Sun, 19 May 2019 08:19:19 +0000 (+0000) Subject: Run clang-format over test/address X-Git-Tag: 2019-10-25~200^2~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ca62cd07dc164137072394bd24045bda425c4a3;p=neomutt Run clang-format over test/address --- diff --git a/test/address/mutt_addr_cat.c b/test/address/mutt_addr_cat.c index 5ae7eeed2..1db734740 100644 --- a/test/address/mutt_addr_cat.c +++ b/test/address/mutt_addr_cat.c @@ -22,10 +22,10 @@ #define TEST_NO_MAIN #include "acutest.h" -#include "common.h" #include "config.h" #include "mutt/mutt.h" #include "address/lib.h" +#include "common.h" void test_mutt_addr_cat(void) { @@ -73,5 +73,4 @@ void test_mutt_addr_cat(void) mutt_addr_cat(buf, sizeof(buf), "a(pp)l\"e", MimeSpecials); TEST_CHECK_STR_EQ("\"a(pp)l\\\"e\"", buf); } - } diff --git a/test/address/mutt_addr_copy.c b/test/address/mutt_addr_copy.c index 0a6bb4aa3..492ab1793 100644 --- a/test/address/mutt_addr_copy.c +++ b/test/address/mutt_addr_copy.c @@ -22,10 +22,10 @@ #define TEST_NO_MAIN #include "acutest.h" -#include "common.h" #include "config.h" #include "mutt/mutt.h" #include "address/lib.h" +#include "common.h" void test_mutt_addr_copy(void) { @@ -36,13 +36,11 @@ void test_mutt_addr_copy(void) } { - struct Address a1 = { - .personal = "John Doe", - .mailbox = "john@doe.com", - .group = 0, - .is_intl = 0, - .intl_checked = false - }; + struct Address a1 = { .personal = "John Doe", + .mailbox = "john@doe.com", + .group = 0, + .is_intl = 0, + .intl_checked = false }; struct Address *a2 = mutt_addr_copy(&a1); TEST_CHECK(a2 != NULL); TEST_CHECK_STR_EQ(a1.personal, a2->personal); @@ -55,11 +53,7 @@ void test_mutt_addr_copy(void) { struct Address a1 = { - .personal = NULL, - .mailbox = "john@doe.com", - .group = 0, - .is_intl = 0, - .intl_checked = false + .personal = NULL, .mailbox = "john@doe.com", .group = 0, .is_intl = 0, .intl_checked = false }; struct Address *a2 = mutt_addr_copy(&a1); TEST_CHECK(a2 != NULL); diff --git a/test/address/mutt_addrlist_append.c b/test/address/mutt_addrlist_append.c index 814c62888..b763cc759 100644 --- a/test/address/mutt_addrlist_append.c +++ b/test/address/mutt_addrlist_append.c @@ -22,10 +22,10 @@ #define TEST_NO_MAIN #include "acutest.h" -#include "common.h" #include "config.h" #include "mutt/mutt.h" #include "address/lib.h" +#include "common.h" void test_mutt_addrlist_append(void) { diff --git a/test/address/mutt_addrlist_copy.c b/test/address/mutt_addrlist_copy.c index 4a9b3875e..023f9d47c 100644 --- a/test/address/mutt_addrlist_copy.c +++ b/test/address/mutt_addrlist_copy.c @@ -22,10 +22,10 @@ #define TEST_NO_MAIN #include "acutest.h" -#include "common.h" #include "config.h" #include "mutt/mutt.h" #include "address/lib.h" +#include "common.h" void test_mutt_addrlist_copy(void) { diff --git a/test/address/mutt_addrlist_prepend.c b/test/address/mutt_addrlist_prepend.c index 986bffac3..0896c39b7 100644 --- a/test/address/mutt_addrlist_prepend.c +++ b/test/address/mutt_addrlist_prepend.c @@ -22,10 +22,10 @@ #define TEST_NO_MAIN #include "acutest.h" -#include "common.h" #include "config.h" #include "mutt/mutt.h" #include "address/lib.h" +#include "common.h" void test_mutt_addrlist_prepend(void) {