Skip to content

Commit ad7e8ea

Browse files
committed
clang-format
1 parent b4a84cb commit ad7e8ea

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

tests/unit/string_literals_concat.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ int main() {
88
assert(joined[5] == '\n');
99
assert(joined[6] == 'b');
1010

11-
char arr[] = "foo" "bar";
11+
char arr[] = "foo"
12+
"bar";
1213
assert(arr[0] == 'f');
1314
assert(arr[3] == 'b');
1415
assert(arr[5] == 'r');
1516
assert(arr[6] == '\0');
1617

17-
const char *split_pieces = "abc" "def" "ghi";
18+
const char *split_pieces = "abc"
19+
"def"
20+
"ghi";
1821
assert(split_pieces[0] == 'a');
1922
assert(split_pieces[3] == 'd');
2023
assert(split_pieces[6] == 'g');

tests/unit/string_literals_concat_c.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#include <assert.h>
22

33
int main(void) {
4-
char arr[] = "foo" "bar";
4+
char arr[] = "foo"
5+
"bar";
56
assert(arr[0] == 'f');
67
assert(arr[3] == 'b');
78
assert(arr[5] == 'r');
89
assert(arr[6] == '\0');
910

10-
const char *split_pieces = "abc" "def" "ghi";
11+
const char *split_pieces = "abc"
12+
"def"
13+
"ghi";
1114
assert(split_pieces[0] == 'a');
1215
assert(split_pieces[3] == 'd');
1316
assert(split_pieces[6] == 'g');

0 commit comments

Comments
 (0)