Changeset 6410 for branches/numpy/anuga/utilities/test_system_tools.py
- Timestamp:
- Feb 25, 2009, 9:37:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/utilities/test_system_tools.py
r6360 r6410 159 159 def test_clean_line_04(self): 160 160 self.clean_line_test('abc, ,,xyz,123, ', ',', 161 ['abc', '', 'xyz', '123' , ''])161 ['abc', '', 'xyz', '123']) 162 162 163 163 def test_clean_line_05(self): 164 164 self.clean_line_test('abc, ,,xyz,123, , ', ',', 165 ['abc', '', 'xyz', '123', '' , ''])165 ['abc', '', 'xyz', '123', '']) 166 166 167 167 def test_clean_line_06(self): 168 168 self.clean_line_test(',,abc, ,,xyz,123, , ', ',', 169 ['abc', '', 'xyz', '123', '' , ''])169 ['abc', '', 'xyz', '123', '']) 170 170 171 171 def test_clean_line_07(self): … … 174 174 def test_clean_line_08(self): 175 175 self.clean_line_test(' ,a,, , ,b,c , ,, , ', ',', 176 [' ', 'a', '', '', 'b', 'c', '', '', ''])176 ['a', '', '', 'b', 'c', '', '']) 177 177 178 178 def test_clean_line_09(self): … … 181 181 def test_clean_line_10(self): 182 182 self.clean_line_test('a:b:c:', ':', ['a', 'b', 'c']) 183 184 # new version of function should leave last field if contains '\n'.185 # cf. test_clean_line_10() above.186 def test_clean_line_11(self):187 self.clean_line_test('a:b:c:\n', ':', ['a', 'b', 'c', ''])188 183 189 184 ################################################################################
Note: See TracChangeset
for help on using the changeset viewer.