Skip to content

Commit 3262389

Browse files
committed
Fix up formatting
1 parent 4a698bf commit 3262389

2 files changed

Lines changed: 18 additions & 19 deletions

File tree

examples/posix_demo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ int main(void)
9595
cli_argc = embedded_cli_argc(&cli, &cli_argv);
9696
printf("Got %d args\n", cli_argc);
9797
for (int i = 0; i < cli_argc; i++) {
98-
printf("Arg %d/%d: [%lu bytes] '%s'\n", i, cli_argc, strlen(cli_argv[i]), cli_argv[i]);
98+
printf("Arg %d/%d: [%lu bytes] '%s'\n", i, cli_argc,
99+
strlen(cli_argv[i]), cli_argv[i]);
99100
}
100101
done = cli_argc >= 1 && (strcmp(cli_argv[0], "quit") == 0);
101102

tests/embedded_cli_test.c

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -315,23 +315,21 @@ static void test_utf8(void)
315315
TEST_ASSERT(strcmp(argv[4], "text") == 0);
316316
}
317317

318-
TEST_LIST = {
319-
{"simple", test_simple},
320-
{"argc", test_argc},
321-
{"delete", test_delete},
322-
{"cursor_left", test_cursor_left},
323-
{"cursor_right", test_cursor_right},
318+
TEST_LIST = {{"simple", test_simple},
319+
{"argc", test_argc},
320+
{"delete", test_delete},
321+
{"cursor_left", test_cursor_left},
322+
{"cursor_right", test_cursor_right},
324323
#if EMBEDDED_CLI_HISTORY_LEN
325-
{"history", test_history},
326-
{"history_keys", test_history_keys},
327-
{"search", test_search},
328-
{"up_down", test_up_down},
324+
{"history", test_history},
325+
{"history_keys", test_history_keys},
326+
{"search", test_search},
327+
{"up_down", test_up_down},
329328
#endif
330-
{"multiple", test_multiple},
331-
{"echo", test_echo},
332-
{"quotes", test_quotes},
333-
{"too_many_args", test_too_many_args},
334-
{"max_chars", test_max_chars},
335-
{"utf8", test_utf8},
336-
{NULL, NULL}
337-
};
329+
{"multiple", test_multiple},
330+
{"echo", test_echo},
331+
{"quotes", test_quotes},
332+
{"too_many_args", test_too_many_args},
333+
{"max_chars", test_max_chars},
334+
{"utf8", test_utf8},
335+
{NULL, NULL}};

0 commit comments

Comments
 (0)