diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-24 15:17:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-24 15:30:51 +0300 |
commit | 70fcecc1f788772ac0ecdbd647583afe995423bb (patch) | |
tree | d0ffa9094a372b5c02daf7254bd8813dce87077d /tests | |
parent | bdae647670817f4c09d4c871314f237dde1bfaac (diff) |
Fix BLI_strncasestr use with a single character
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtests/blenlib/BLI_string_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gtests/blenlib/BLI_string_test.cc b/tests/gtests/blenlib/BLI_string_test.cc index 5559b8d7af0..17a4b5e82b9 100644 --- a/tests/gtests/blenlib/BLI_string_test.cc +++ b/tests/gtests/blenlib/BLI_string_test.cc @@ -451,6 +451,9 @@ TEST(string, StringStrncasestr) res = BLI_strncasestr(str_test0, "", 0); EXPECT_EQ(str_test0, res); + res = BLI_strncasestr(str_test0, " ", 1); + EXPECT_EQ(str_test0 + 6, res); + res = BLI_strncasestr(str_test0, "her", 3); EXPECT_EQ(str_test0 + 7, res); |