We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751a385 commit a413afeCopy full SHA for a413afe
PythonScript/python_tests/tests/ReplaceCountTestCase.py
@@ -14,18 +14,18 @@ def tearDown(self):
14
notepad.close()
15
16
def test_replace_limit_3(self):
17
- editor.rereplace(r'([A-Z]{3})', 'TEST', re.IGNORECASE, 0, 0, 3)
+ editor.rereplace(r'([A-Z]{3})', 'TEST', re.IGNORECASE, 0, -1, 3)
18
text = editor.getText()
19
self.assertEqual(text, u'TEST123TEST4567 TEST8910\r\nAbc123\r\n')
20
21
def test_replace_limit_2(self):
22
- editor.rereplace(r'([A-Z]{3})', 'TEST', re.IGNORECASE, 0, 0, 2)
+ editor.rereplace(r'([A-Z]{3})', 'TEST', re.IGNORECASE, 0, -1, 2)
23
24
self.assertEqual(text, u'TEST123TEST4567 ghi8910\r\nAbc123\r\n')
25
26
27
def test_replace_literal_count_1(self):
28
- editor.replace(r'Abc', 'TEST', re.IGNORECASE, 0, 0, 1)
+ editor.replace(r'Abc', 'TEST', re.IGNORECASE, 0, -1, 1)
29
30
self.assertEqual(text, u'TEST123DEF4567 ghi8910\r\nAbc123\r\n')
31
0 commit comments