|
From: <bc...@wo...> - 2001-02-02 13:08:48
|
[Ype Kingma]
>Dear developers,
>
>Tried to report this via soureforge but the bugid bug
>is still there.
>In jython 2.0 a3 I have this:
>
>'aaa'.count('a',0,2) == 2, ok, and
>
>'ababab'.count('ab',0,5) == 3, should be 2 (CPython also gives 2).
>
>'defdefdef.count('def',0,8) == 3, should also be 2.
>
>Using blackdown java 1.3, powerpc, no jit.
>
>You might want to add sth like this to test_string.py,
>count() is untested there:
>
> test('count', 'aaa', 3, 'a')
> test('count', 'aaa', 2, 'a', 0, 2)
> test('count', 'ababab', 3, 'ab', 0)
> test('count', 'ababab', 2, 'ab', 0, 5)
> test('count', 'ababab', 2, 'ab', 1)
> test('count', 'ababab', 2, 'ab', 1, 6)
> test('count', 'ababab', 0, 'abc')
> test('count', 'ababab', 0, '')
Thanks, I have added this (except for the last test which should return
7 according to CPython).
regards,
finn
|