Changeset 0e362b5


Ignore:
Timestamp:
Jul 27, 2015, 10:26:27 AM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
a1718fc
Parents:
9c8c8a6
Message:

python/tests/test_cvec.py: remove whitespace and unused variable (closes #19), thanks to SivaCoHan?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_cvec.py

    r9c8c8a6 r0e362b5  
    1010    def test_vector_created_with_zeroes(self):
    1111        a = cvec(10)
    12         a
    1312        shape(a.norm)
    1413        shape(a.phas)
     
    3635        spec = cvec(1024)
    3736        spec.norm[40:100] = 100
    38         assert_equal (spec.norm[0:40], 0)
    39         assert_equal (spec.norm[40:100], 100)
    40         assert_equal (spec.norm[100:-1], 0)
    41         assert_equal (spec.phas, 0)
     37        assert_equal(spec.norm[0:40], 0)
     38        assert_equal(spec.norm[40:100], 100)
     39        assert_equal(spec.norm[100:-1], 0)
     40        assert_equal(spec.phas, 0)
    4241
    4342    def test_assign_cvec_phas_slice(self):
    4443        spec = cvec(1024)
    4544        spec.phas[39:-1] = -pi
    46         assert_equal (spec.phas[0:39], 0)
    47         assert_equal (spec.phas[39:-1], -pi)
    48         assert_equal (spec.norm, 0)
     45        assert_equal(spec.phas[0:39], 0)
     46        assert_equal(spec.phas[39:-1], -pi)
     47        assert_equal(spec.norm, 0)
    4948
    5049if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.