Skip to content

Commit b7060fd

Browse files
committed
a couple of more edge cases
1 parent 29ebebb commit b7060fd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ PYSTRING_ADD_TEST(python3_compat, center)
727727
PYSTRING_ADD_TEST(python3_compat, count_python3)
728728
{
729729
PYSTRING_CHECK_EQUAL(pystring::count("", "", 0), 1);
730+
PYSTRING_CHECK_EQUAL(pystring::count("bob", ""), 4);
731+
PYSTRING_CHECK_EQUAL(pystring::count("", "bob"), 0);
730732
PYSTRING_CHECK_EQUAL(pystring::count("hello world", "o", 0), 2);
731733
PYSTRING_CHECK_EQUAL(pystring::count("hello world", "l", 0), 3);
732734
PYSTRING_CHECK_EQUAL(pystring::count("hello world", "xyz", 0), 0);

0 commit comments

Comments
 (0)