lib/test_string.c: add strspn and strcspn tests
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 29 Apr 2022 21:38:00 +0000 (14:38 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 21:38:00 +0000 (14:38 -0700)
commite0fa2ab3fcff42b8c2ed906f5619aae896e1e5e1
tree1e224f827ec406321979111217db7e5faafd0b92
parent67fca000e1e173fe2c539a127ccf1bc338d5ff37
lib/test_string.c: add strspn and strcspn tests

Before refactoring strspn() and strcspn(), add some simple test cases.

Link: https://lkml.kernel.org/r/20220328224119.3003834-1-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_string.c