Changeset 9f9f63f for tests/python/examples
- Timestamp:
- Nov 1, 2007, 2:06:31 PM (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:
- d1ec8cb
- Parents:
- b660fbc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/python/examples/aubioonset.py
rb660fbc r9f9f63f 10 10 """ test aubioonset with default parameters """ 11 11 self.getOutput() 12 assert len(self.output) != 0, self.output 13 assert len(str(self.output)) != 0, "no output produced with command:\n" \ 14 + self.command 12 15 13 16 def test_aubioonset_with_inf_silence(self): … … 23 26 # only one onset in woodblock.aiff 24 27 assert len(self.output.split('\n')) == 1 25 assert len(str(self.output)) != 0, "no output produced with command:\n" + self.command 28 assert len(str(self.output)) != 0, "no output produced with command:\n" \ 29 + self.command 26 30 # onset should be at 0.00000 27 31 assert float(self.output.strip()) == 0. … … 44 48 45 49 class aubioonset_test_case_phase(aubioonset_test_case): 46 def setUp(self, options = " -O phase 50 def setUp(self, options = " -O phase"): 47 51 aubioonset_test_case.setUp(self, options = options) 48 52 … … 56 60 57 61 if __name__ == '__main__': 62 58 63 unittest.main()
Note: See TracChangeset
for help on using the changeset viewer.