Changeset 0b6d23d for python/tests/test_fvec.py
- Timestamp:
- May 16, 2016, 5:08:18 AM (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:
- a6f9ebf
- Parents:
- 58a5fb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_fvec.py
r58a5fb9 r0b6d23d 1 1 #! /usr/bin/env python 2 2 3 from unittest import main 3 4 import numpy as np 4 5 from numpy.testing import TestCase, assert_equal, assert_almost_equal … … 50 51 self.assertRaises(ValueError, fvec, -10) 51 52 52 def test_ negative_length(self):53 def test_zero_length(self): 53 54 """ test creating fvec with zero length fails (pure python) """ 54 55 self.assertRaises(ValueError, fvec, 0) … … 129 130 def test_pass_to_numpy(self): 130 131 a = fvec(10) 131 a = 1.132 a[:] = 1. 132 133 b = a 133 134 del a … … 140 141 141 142 if __name__ == '__main__': 142 from unittest import main143 143 main()
Note: See TracChangeset
for help on using the changeset viewer.