Skip to content

Commit

Permalink
Update tests/unittests/tests-libc/tests-libc.c
Browse files Browse the repository at this point in the history
Co-authored-by: Teufelchen <[email protected]>
  • Loading branch information
benpicco and Teufelchen1 authored Sep 9, 2024
1 parent d4ba2f7 commit 6eea402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unittests/tests-libc/tests-libc.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static void test_libc_swprintf(void)
TEST_ASSERT_EQUAL_INT(strcmp("Hello World!", string_writer_str(&sw)), 0);

/* check that we can add to the string */
/* Writing 10 characters, returns 10 bytes written */
res = swprintf(&sw, "0123456789");
TEST_ASSERT_EQUAL_INT(res, 10);
TEST_ASSERT_EQUAL_INT(strcmp("Hello World!0123456789", string_writer_str(&sw)), 0);
Expand Down

0 comments on commit 6eea402

Please sign in to comment.