From 9afb8f89068725e26db9b776c57bdfb03d94c17e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 3 Mar 2013 14:52:13 -0500 Subject: [PATCH] tests/python/src/fvec.py: replaced by python/tests/test_fvec.py --- tests/python/src/fvec.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 tests/python/src/fvec.py diff --git a/tests/python/src/fvec.py b/tests/python/src/fvec.py deleted file mode 100644 index afbc23e3..00000000 --- a/tests/python/src/fvec.py +++ /dev/null @@ -1,35 +0,0 @@ -from template import aubio_unit_template -from localaubio import * - -buf_size = 2048 -channels = 3 - -class fvec_unit(aubio_unit_template): - - def setUp(self): - self.vector = new_fvec(buf_size, channels) - - def tearDown(self): - del_fvec(self.vector) - - def test_fvec(self): - """ create and delete fvec """ - pass - - def test_fvec_read_sample(self): - """ check new fvec elements are set to 0. """ - for index in range(buf_size): - for channel in range(channels): - self.assertEqual(0., fvec_read_sample(self.vector,channel,index)) - - def test_fvec_write_sample(self): - """ check new fvec elements are set with fvec_write_sample """ - for index in range(buf_size): - for channel in range(channels): - fvec_write_sample(self.vector,1.,channel,index) - for index in range(buf_size): - for channel in range(channels): - self.assertEqual(1., fvec_read_sample(self.vector,channel,index)) - -if __name__ == '__main__': - unittest.main() -- 2.26.2