History

python/tests/test_zero_crossing_rate.py: clean up, chmod +x

Paul Brossier committed 12 years ago

Commit 89e9e711 parent 634c12f1 file · +2 −6Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_zero_crossing_rate.py+2−6
@@ -1,9 +1,9 @@
1from aubio import fvec, zero_crossing_rate
2
3#! /usr/bin/env python1#! /usr/bin/env python
4 2
5from numpy.testing import TestCase3from numpy.testing import TestCase
6 4
5from aubio import fvec, zero_crossing_rate
6
7buf_size = 20487buf_size = 2048
8 8
9class zero_crossing_rate_test_case(TestCase):9class zero_crossing_rate_test_case(TestCase):
@@ -11,10 +11,6 @@ class zero_crossing_rate_test_case(TestCase): · 1 unmodified line
11 def setUp(self):11 def setUp(self):
12 self.vector = fvec(buf_size)12 self.vector = fvec(buf_size)
13 13
14 def test(self):
15 """ create and delete fvec """
16 pass
17
18 def test_zeroes(self):14 def test_zeroes(self):
19 """ check zero crossing rate on a buffer of 0. """15 """ check zero crossing rate on a buffer of 0. """
20 self.assertEqual(0., zero_crossing_rate(self.vector))16 self.assertEqual(0., zero_crossing_rate(self.vector))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t