Changeset 493e6f7


Ignore:
Timestamp:
Jan 9, 2010, 3:21:54 PM (14 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

test_fvec.py: add test_alpha_norm_of_none and test_vector_create_with_list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/test_fvec.py

    r549825a r493e6f7  
    1313        #del a
    1414        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)
    1519
    1620    def test_vector_assign_element(self):
     
    5357        from math import sqrt
    5458        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)
    5562
    5663    def test_alpha_norm_of_array_of_float32(self):
Note: See TracChangeset for help on using the changeset viewer.