Skip to content

Commit

Permalink
[CRT_APITEST] wctomb.c Fix '\n.' typos CORE-18103
Browse files Browse the repository at this point in the history
Addendum to 0.4.15-dev-139-g 3cb0bda

Those were the only new cases introduced in the ReactOS source tree since
our last cleanup in that regard.
Ftr I think adding such finishing dots in debug prints are nonsense in general.
  • Loading branch information
JoachimHenze committed Mar 25, 2022
1 parent a8107ee commit 44a6987
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/rostests/apitests/crt/wctomb.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ START_TEST(wctomb)

/* Do not give output to the caller */
Length = wctomb(NULL, 0);
ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d\n.", Length);
ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d.\n", Length);

/* Do the same but expect a valid wide character argument this time */
Length = wctomb(NULL, wchSrc[0]);
ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d\n.", Length);
ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d.\n", Length);

/* Don't return anything to the output even if conversion is impossible */
Length = wctomb(NULL, wchSrc[1]);
ok(errno == 0, "The error number (errno) should be 0 even though an invalid character in current locale is given but got %d.\n", errno);
ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d\n.", Length);
ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d.\n", Length);

/* Attempt to convert a character not possible in current locale */
Length = wctomb(chDest, wchSrc[1]);
Expand Down

0 comments on commit 44a6987

Please sign in to comment.