]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-ctype: test islower and isupper
authorRené Scharfe <l.s.r@web.de>
Mon, 13 Feb 2023 21:10:45 +0000 (22:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Feb 2023 21:36:05 +0000 (13:36 -0800)
Test the character classifiers added by 43ccdf56ec (ctype: implement
islower/isupper macro, 2012-02-10).

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-ctype.c

index caf586649fe3a045a52917772439c9dcf3d8b99e..8ac76e93e4ad8026d548c84ba2a5ffa3e5be98cd 100644 (file)
@@ -53,6 +53,8 @@ int cmd__ctype(int argc, const char **argv)
        TEST_CLASS(is_regex_special, "$()*+.?[\\^{|");
        TEST_CLASS(is_pathspec_magic, "!\"#%&',-/:;<=>@_`~");
        TEST_CLASS(isascii, ASCII);
+       TEST_CLASS(islower, LOWER);
+       TEST_CLASS(isupper, UPPER);
 
        return rc;
 }