Skip to content

Commit 9f68eea

Browse files
committed
format code with clang-format
1 parent 2ad113d commit 9f68eea

File tree

1 file changed

+27
-33
lines changed

1 file changed

+27
-33
lines changed

libc/test/src/time/localtime_r_test.cpp

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@
1010
#include "test/UnitTest/Test.h"
1111

1212
TEST(LlvmLibcLocaltimeR, ValidUnixTimestamp0) {
13-
struct tm input = {
14-
.tm_sec = 0,
15-
.tm_min = 0,
16-
.tm_hour = 0,
17-
.tm_mday = 0,
18-
.tm_mon = 0,
19-
.tm_year = 0,
20-
.tm_wday = 0,
21-
.tm_yday = 0,
22-
.tm_isdst = 0
23-
};
13+
struct tm input = {.tm_sec = 0,
14+
.tm_min = 0,
15+
.tm_hour = 0,
16+
.tm_mday = 0,
17+
.tm_mon = 0,
18+
.tm_year = 0,
19+
.tm_wday = 0,
20+
.tm_yday = 0,
21+
.tm_isdst = 0};
2422
const time_t timer = 0;
2523

2624
struct tm *result = LIBC_NAMESPACE::localtime_r(&timer, &input);
@@ -42,17 +40,15 @@ TEST(LlvmLibcLocaltimeR, ValidUnixTimestamp0) {
4240
// This will be resolved a new pull request.
4341

4442
TEST(LlvmLibcLocaltimeR, ValidUnixTimestamp) {
45-
struct tm input = {
46-
.tm_sec = 0,
47-
.tm_min = 0,
48-
.tm_hour = 0,
49-
.tm_mday = 0,
50-
.tm_mon = 0,
51-
.tm_year = 0,
52-
.tm_wday = 0,
53-
.tm_yday = 0,
54-
.tm_isdst = 0
55-
};
43+
struct tm input = {.tm_sec = 0,
44+
.tm_min = 0,
45+
.tm_hour = 0,
46+
.tm_mday = 0,
47+
.tm_mon = 0,
48+
.tm_year = 0,
49+
.tm_wday = 0,
50+
.tm_yday = 0,
51+
.tm_isdst = 0};
5652
const time_t timer = 1756595338;
5753
struct tm *result = LIBC_NAMESPACE::localtime_r(&timer, &input);
5854

@@ -68,17 +64,15 @@ TEST(LlvmLibcLocaltimeR, ValidUnixTimestamp) {
6864
}
6965

7066
TEST(LlvmLibcLocaltimeR, ValidUnixTimestampNegative) {
71-
struct tm input = {
72-
.tm_sec = 0,
73-
.tm_min = 0,
74-
.tm_hour = 0,
75-
.tm_mday = 0,
76-
.tm_mon = 0,
77-
.tm_year = 0,
78-
.tm_wday = 0,
79-
.tm_yday = 0,
80-
.tm_isdst = 0
81-
};
67+
struct tm input = {.tm_sec = 0,
68+
.tm_min = 0,
69+
.tm_hour = 0,
70+
.tm_mday = 0,
71+
.tm_mon = 0,
72+
.tm_year = 0,
73+
.tm_wday = 0,
74+
.tm_yday = 0,
75+
.tm_isdst = 0};
8276
const time_t timer = -1756595338;
8377
struct tm *result = LIBC_NAMESPACE::localtime_r(&timer, &input);
8478

0 commit comments

Comments
 (0)