Add test for xy_streql_ic()

This commit is contained in:
Aoran Zeng 2025-08-08 00:08:32 +08:00
parent 695ce1072c
commit 1a73a31e06
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 17 additions and 12 deletions

View File

@ -6,7 +6,7 @@
* Contributors : Nil Null <nil@null.org>
* |
* Created On : <2023-08-30>
* Last Modified : <2025-06-20>
* Last Modified : <2025-08-08>
*
* Test xy.h
* ------------------------------------------------------------*/
@ -57,6 +57,11 @@ main (int argc, char const *argv[])
xy_warn_brkt ("xy.h", "警告", "兰州牛肉面,而非兰州拉面");
xy_error_brkt ("xy.h", "错误", "西安肉丸胡辣汤里没有肉丸");
assert (xy_streql ("abc", "abc"));
assert (xy_streql_ic ("abc", "abc"));
assert (false == xy_streql ("abc", "abC"));
assert (true == xy_streql_ic ("abc", "abC"));
assert (false == xy_str_end_with ("abcdef", "abcdefg"));
assert (xy_str_end_with ("abcdef", "def"));