]> Savannah Git Hosting - gnulib.git/commitdiff
iswblank tests: Add more tests.
authorBruno Haible <bruno@clisp.org>
Wed, 26 Jul 2023 11:48:25 +0000 (13:48 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 26 Jul 2023 11:48:25 +0000 (13:48 +0200)
* tests/test-iswblank.c (main): Verify that this character class
contains the ASCII space and tab, but not newline.

ChangeLog
tests/test-iswblank.c

index e3d2ce44ee6525ede54149e4903a70c20514f690..3d602638deffbb6f7c1fad258aa146768fdf74e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-07-26  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        wctype, wctrans: Require a non-NULL argument.
index d8db5ff8af7d77efe5de588183af8d5c2c26f8b3..6d5d1380d2d0fd1e78016aaccfcfe2936c2ce3cf 100644 (file)
@@ -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;
 }