From ac0d99cd6c13782df7e42e6e83a8bcb8fc273906 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 26 Jul 2023 13:48:25 +0200 Subject: [PATCH] iswblank tests: Add more tests. * tests/test-iswblank.c (main): Verify that this character class contains the ASCII space and tab, but not newline. --- ChangeLog | 6 ++++++ tests/test-iswblank.c | 5 +++++ 2 files changed, 11 insertions(+) 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; } -- 2.39.5