Kaydet (Commit) 798b4df8 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

test_unicode was forgetting to run the common string tests for str.find()

...@@ -170,6 +170,7 @@ class UnicodeTest(string_tests.CommonTest, ...@@ -170,6 +170,7 @@ class UnicodeTest(string_tests.CommonTest,
self.checkequalnofix(0, 'aaa', 'count', 'a', 0, -10) self.checkequalnofix(0, 'aaa', 'count', 'a', 0, -10)
def test_find(self): def test_find(self):
string_tests.CommonTest.test_find(self)
self.checkequalnofix(0, 'abcdefghiabc', 'find', 'abc') self.checkequalnofix(0, 'abcdefghiabc', 'find', 'abc')
self.checkequalnofix(9, 'abcdefghiabc', 'find', 'abc', 1) self.checkequalnofix(9, 'abcdefghiabc', 'find', 'abc', 1)
self.checkequalnofix(-1, 'abcdefghiabc', 'find', 'def', 4) self.checkequalnofix(-1, 'abcdefghiabc', 'find', 'def', 4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment