diff options
author | 2016-10-18 12:15:08 -0700 | |
---|---|---|
committer | 2016-10-18 12:15:08 -0700 | |
commit | 9fa9315d62c3163a93eeae2b3d3bb70231567b83 (patch) | |
tree | 49968018548e4a294026a9f95b8ea5363efceb0e /test/core/support/string_test.c | |
parent | 23c5b812687d0ebb86ed86d64416b232f8771e56 (diff) | |
parent | 948f95b2ce4204f859c867207bd991d30ca17ee7 (diff) |
Merge remote-tracking branch 'upstream/master' into fc_1dstream
Diffstat (limited to 'test/core/support/string_test.c')
-rw-r--r-- | test/core/support/string_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/core/support/string_test.c b/test/core/support/string_test.c index 553a824b3f..378e45a942 100644 --- a/test/core/support/string_test.c +++ b/test/core/support/string_test.c @@ -366,6 +366,13 @@ static void test_leftpad() { gpr_free(padded); } +static void test_stricmp(void) { + GPR_ASSERT(0 == gpr_stricmp("hello", "hello")); + GPR_ASSERT(0 == gpr_stricmp("HELLO", "hello")); + GPR_ASSERT(gpr_stricmp("a", "b") < 0); + GPR_ASSERT(gpr_stricmp("b", "a") > 0); +} + int main(int argc, char **argv) { grpc_test_init(argc, argv); test_strdup(); @@ -379,5 +386,6 @@ int main(int argc, char **argv) { test_ltoa(); test_int64toa(); test_leftpad(); + test_stricmp(); return 0; } |