]> granicus.if.org Git - neomutt/commitdiff
Run clang-format over test/address
authorPietro Cerutti <gahr@gahr.ch>
Sun, 19 May 2019 08:19:19 +0000 (08:19 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 23 May 2019 10:57:10 +0000 (11:57 +0100)
test/address/mutt_addr_cat.c
test/address/mutt_addr_copy.c
test/address/mutt_addrlist_append.c
test/address/mutt_addrlist_copy.c
test/address/mutt_addrlist_prepend.c

index 5ae7eeed202130a00768c30e37f66f29d55c2b76..1db734740e5874678ffea9f6e1f55c7cdcde83a7 100644 (file)
 
 #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);
   }
-
 }
index 0a6bb4aa3d91d62b78d9d754ce710b6a1810a631..492ab17933e51bc3ecc0ce9982c38cb5a6f729e0 100644 (file)
 
 #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);
index 814c62888912aaeecab0397b180a0d2a18052af8..b763cc759015f3c6d1df9413d5ec7cfed26228e7 100644 (file)
 
 #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)
 {
index 4a9b3875e8797a0cb64a9d3b37d8ca84419cf03a..023f9d47cde9b80c4fa24a75133c9aa004f7d6b6 100644 (file)
 
 #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)
 {
index 986bffac38aa7dccf9511b34487ac02e233def43..0896c39b712be0c3513eb91ce5606d10514ada88 100644 (file)
 
 #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)
 {