Changeset cfa46b9 for python/tests
- Timestamp:
- Apr 25, 2016, 6:05:02 PM (9 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:
- 07867cd
- Parents:
- 6e765ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_source.py
r6e765ed rcfa46b9 100 100 assert a == b + c 101 101 102 def test_duration(self): 103 for p in list_of_sounds: 104 total_frames = 0 105 f = source(p) 106 duration = f.duration 107 while True: 108 vec, read = f() 109 total_frames += read 110 if read < f.hop_size: break 111 self.assertEqual(duration, total_frames) 112 102 113 class aubio_source_readmulti_test_case(aubio_source_read_test_case): 103 114
Note: See TracChangeset
for help on using the changeset viewer.