Changeset ef7df76 for tests/python
- Timestamp:
- Nov 6, 2007, 11:53:50 AM (17 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- f218f29
- Parents:
- 82c588a (diff), 2b3280a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tests/python
- Files:
-
- 10 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/python/fvec.py ¶
r82c588a ref7df76 22 22 for index in range(buf_size): 23 23 for channel in range(channels): 24 self.assertEqual( fvec_read_sample(self.vector,channel,index),0.)24 self.assertEqual(0., fvec_read_sample(self.vector,channel,index)) 25 25 26 26 def test_fvec_write_sample(self): … … 31 31 for index in range(buf_size): 32 32 for channel in range(channels): 33 self.assertEqual( fvec_read_sample(self.vector,channel,index),1.)33 self.assertEqual(1., fvec_read_sample(self.vector,channel,index)) 34 34 35 35 if __name__ == '__main__': -
TabularUnified tests/python/run_all_tests ¶
r82c588a ref7df76 12 12 13 13 from glob import glob 14 modules_to_test = [i.split('.')[0] for i in glob('*.py')] 14 def list_of_test_files(path): 15 return [i.split('.')[0].replace('/','.') for i in glob(path)] 16 17 modules_to_test = list_of_test_files('*.py') 18 modules_to_test += list_of_test_files('examples/aubio*.py') 15 19 16 20 if __name__ == '__main__': 17 21 for module in modules_to_test: 18 if module != ' all_tests': # (not actually needed)22 if module != 'run_all_tests': # (not actually needed) 19 23 exec('from %s import *' % module) 20 24 unittest.main()
Note: See TracChangeset
for help on using the changeset viewer.