Changeset 493e6f7 for interfaces/python
- Timestamp:
- Jan 9, 2010, 3:21:54 PM (15 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:
- 228e8d8
- Parents:
- 549825a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/test_fvec.py
r549825a r493e6f7 13 13 #del a 14 14 assert_equal(array(a), 0.) 15 16 def test_vector_create_with_list(self): 17 a = fvec([0,1,2,3]) 18 assert_equal (range(4), a) 15 19 16 20 def test_vector_assign_element(self): … … 53 57 from math import sqrt 54 58 assert_almost_equal (alpha_norm(a, 2), sqrt(2)/2.) 59 60 def test_alpha_norm_of_none(self): 61 self.assertRaises (ValueError, alpha_norm, None, 1) 55 62 56 63 def test_alpha_norm_of_array_of_float32(self):
Note: See TracChangeset
for help on using the changeset viewer.