Skip to content

Commit 282accf

Browse files
author
Ubuntu
committed
Fix 1
1 parent fce0372 commit 282accf

File tree

5 files changed

+102
-100
lines changed

5 files changed

+102
-100
lines changed

data/clean/f_306_indraneil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_case_1(self):
101101
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_1'])
102102
self.assertTrue(os.path.exists(os.path.join(f'{self.base_test_dir}/dest_test_dir_1', moved_file)))
103103
# Test the name of the moved file
104-
self.assertEqual(moved_file, 'file3.txt')
104+
self.assertTrue(moved_file.endswith('.txt'))
105105

106106
def test_case_2(self):
107107
moved_file = f_306(f'{self.base_test_dir}/src_test_dir_2', f'{self.base_test_dir}/dest_test_dir_2')
@@ -121,7 +121,7 @@ def test_case_4(self):
121121
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_4'])
122122
self.assertTrue(os.path.exists(os.path.join(f'{self.base_test_dir}/dest_test_dir_4', moved_file)))
123123
# Test the name of the moved file
124-
self.assertEqual(moved_file, 'file11.txt')
124+
self.assertTrue(moved_file.endswith('.txt'))
125125

126126
def test_case_5(self):
127127
moved_file = f_306(f'{self.base_test_dir}/src_test_dir_5', f'{self.base_test_dir}/dest_test_dir_5')
@@ -139,3 +139,4 @@ def run_tests():
139139
if __name__ == '__main__':
140140
doctest.testmod()
141141
run_tests()
142+

data/processed/77_wo_doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_case_1(self):
8484
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_1'])
8585
self.assertTrue(os.path.exists(os.path.join(f'{self.base_test_dir}/dest_test_dir_1', moved_file)))
8686
# Test the name of the moved file
87-
self.assertEqual(moved_file, 'file3.txt')
87+
self.assertTrue(moved_file.endswith('.txt'))
8888
def test_case_2(self):
8989
moved_file = task_func(f'{self.base_test_dir}/src_test_dir_2', f'{self.base_test_dir}/dest_test_dir_2')
9090
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_2'])
@@ -101,7 +101,7 @@ def test_case_4(self):
101101
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_4'])
102102
self.assertTrue(os.path.exists(os.path.join(f'{self.base_test_dir}/dest_test_dir_4', moved_file)))
103103
# Test the name of the moved file
104-
self.assertEqual(moved_file, 'file11.txt')
104+
self.assertTrue(moved_file.endswith('.txt'))
105105
def test_case_5(self):
106106
moved_file = task_func(f'{self.base_test_dir}/src_test_dir_5', f'{self.base_test_dir}/dest_test_dir_5')
107107
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_5'])

data/raw/f_306_indraneil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_case_1(self):
101101
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_1'])
102102
self.assertTrue(os.path.exists(os.path.join(f'{self.base_test_dir}/dest_test_dir_1', moved_file)))
103103
# Test the name of the moved file
104-
self.assertEqual(moved_file, 'file3.txt')
104+
self.assertTrue(moved_file.endswith('.txt'))
105105

106106
def test_case_2(self):
107107
moved_file = f_306(f'{self.base_test_dir}/src_test_dir_2', f'{self.base_test_dir}/dest_test_dir_2')
@@ -121,7 +121,7 @@ def test_case_4(self):
121121
self.assertIn(moved_file, self.test_dirs[f'{self.base_test_dir}/src_test_dir_4'])
122122
self.assertTrue(os.path.exists(os.path.join(f'{self.base_test_dir}/dest_test_dir_4', moved_file)))
123123
# Test the name of the moved file
124-
self.assertEqual(moved_file, 'file11.txt')
124+
self.assertTrue(moved_file.endswith('.txt'))
125125

126126
def test_case_5(self):
127127
moved_file = f_306(f'{self.base_test_dir}/src_test_dir_5', f'{self.base_test_dir}/dest_test_dir_5')
@@ -139,3 +139,4 @@ def run_tests():
139139
if __name__ == '__main__':
140140
doctest.testmod()
141141
run_tests()
142+

0 commit comments

Comments
 (0)