Issue #19591: Use specific asserts in ctype tests.