History

tests/python/src/temporal/c_weighting.py: replaced by python/tests/test_filter.py

Paul Brossier committed 13 years ago

Commit 57470811 parent 0bd161d3 files · +9 −59Browse files

Showing the changes to python/tests (2 of 3 files). Show all

Unified · Split

2 files
  1. python/tests/c_weighting_test_simple_8000.expected +2 −0
  2. python/tests/test_filter.py +9 −0
python/tests/c_weighting_test_simple_8000.expected+2−0
@@ -0,0 +1,2 @@
1+ 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 5.00000000e-01 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00
2+ 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 3.39108697e-01 2.23441868e-01 -1.31029191e-01 3.33061907e-02 -2.89386407e-02 -1.68524660e-02 -5.02737225e-03 -2.47225074e-02 -3.06670933e-03 -2.20570849e-02 -5.57507292e-03 -1.81342032e-02 -7.89289483e-03 -1.50756531e-02 -9.23565472e-03 -1.29964131e-02 -9.78591684e-03 -1.16053213e-02 -9.84372912e-03 -1.06315198e-02
python/tests/test_filter.py+9−0
@@ -40,6 +40,15 @@ class aubio_filter_test_case(TestCase): · 39 unmodified lines
4040 u = f(v)
4141 assert_almost_equal (expected[1], u)
4242
43+ def test_c_weighting_8000(self):
44+ expected = array_from_text_file('c_weighting_test_simple_8000.expected')
45+ f = digital_filter(5)
46+ f.set_c_weighting(8000)
47+ v = fvec(32)
48+ v[12] = .5
49+ u = f(v)
50+ assert_almost_equal (expected[1], u)
51+
4352 def test_a_weighting(self):
4453 expected = array_from_text_file('a_weighting_test_simple.expected')
4554 f = digital_filter(7)

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