From: Bruno Haible Date: Wed, 26 Jul 2023 11:48:25 +0000 (+0200) Subject: iswblank tests: Add more tests. X-Git-Tag: v1.0~1031 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ac0d99cd6c13782df7e42e6e83a8bcb8fc273906;p=gnulib.git iswblank tests: Add more tests. * tests/test-iswblank.c (main): Verify that this character class contains the ASCII space and tab, but not newline. --- diff --git a/ChangeLog b/ChangeLog index e3d2ce44ee..3d602638de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-07-26 Bruno Haible + + iswblank tests: Add more tests. + * tests/test-iswblank.c (main): Verify that this character class + contains the ASCII space and tab, but not newline. + 2023-07-26 Bruno Haible wctype, wctrans: Require a non-NULL argument. diff --git a/tests/test-iswblank.c b/tests/test-iswblank.c index d8db5ff8af..6d5d1380d2 100644 --- a/tests/test-iswblank.c +++ b/tests/test-iswblank.c @@ -31,5 +31,10 @@ main (void) /* Check that the isw* functions map WEOF to 0. */ ASSERT (!iswblank (e)); + /* Sanity check for the iswblank function. */ + ASSERT (iswblank (L' ')); + ASSERT (iswblank (L'\t')); + ASSERT (!iswblank (L'\n')); + return 0; }