We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29ebebb commit b7060fdCopy full SHA for b7060fd
1 file changed
test.cpp
@@ -727,6 +727,8 @@ PYSTRING_ADD_TEST(python3_compat, center)
727
PYSTRING_ADD_TEST(python3_compat, count_python3)
728
{
729
PYSTRING_CHECK_EQUAL(pystring::count("", "", 0), 1);
730
+ PYSTRING_CHECK_EQUAL(pystring::count("bob", ""), 4);
731
+ PYSTRING_CHECK_EQUAL(pystring::count("", "bob"), 0);
732
PYSTRING_CHECK_EQUAL(pystring::count("hello world", "o", 0), 2);
733
PYSTRING_CHECK_EQUAL(pystring::count("hello world", "l", 0), 3);
734
PYSTRING_CHECK_EQUAL(pystring::count("hello world", "xyz", 0), 0);
0 commit comments