From 1ad83d3c42629142d035fa369240ab3a2cd578a3 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 11 Feb 2009 16:17:58 +0000 Subject: [PATCH] Thu Jan 8 14:11:49 CST 2009 Pekka Pessi * su_string.c: fixed su_strcasestr() git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11778 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/libsofia-sip-ua/su/test_memmem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/sofia-sip/libsofia-sip-ua/su/test_memmem.c b/libs/sofia-sip/libsofia-sip-ua/su/test_memmem.c index 9af01ecabc..49132a4ad7 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/test_memmem.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/test_memmem.c @@ -147,6 +147,9 @@ int test_strcasestr(void) TEST_1(su_strcasestr("OnG", hs) == NULL); TEST_1(su_strcasestr(hs, "Z") == NULL); TEST_1(su_strcasestr(hs, "z") == NULL); + + TEST_S(su_strcasestr("foobar", "OB"), "obar"); + TEST_S(su_strcasestr("FOOBAR", "ob"), "OBAR"); } {