From 52e5d6965f117fd1b5ff2513cfd47d38ee54724e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 3 Mar 2013 14:51:26 -0500 Subject: [PATCH] tests/python/src/cvec.py: replaced by python/tests/test_cvec.py --- tests/python/src/cvec.py | 50 ---------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 tests/python/src/cvec.py diff --git a/tests/python/src/cvec.py b/tests/python/src/cvec.py deleted file mode 100644 index 774eb78d..00000000 --- a/tests/python/src/cvec.py +++ /dev/null @@ -1,50 +0,0 @@ -from template import aubio_unit_template -from localaubio import * - -buf_size = 2048 -channels = 3 - -class cvec_unit(aubio_unit_template): - - def setUp(self): - self.vector = new_cvec(buf_size, channels) - - def tearDown(self): - del_cvec(self.vector) - - def test_cvec(self): - """ create and delete cvec """ - pass - - def test_cvec_read_norm(self): - """ check new cvec norm elements are set to 0. """ - for index in range(buf_size/2+1): - for channel in range(channels): - self.assertEqual(cvec_read_norm(self.vector,channel,index),0.) - - def test_cvec_read_phas(self): - """ check new cvec phas elements are set to 0. """ - for index in range(buf_size/2+1): - for channel in range(channels): - self.assertEqual(cvec_read_phas(self.vector,channel,index),0.) - - def test_cvec_write_norm(self): - """ check new cvec norm elements are set with cvec_write_norm """ - for index in range(buf_size/2+1): - for channel in range(channels): - cvec_write_norm(self.vector,1.,channel,index) - for index in range(buf_size/2+1): - for channel in range(channels): - self.assertEqual(cvec_read_norm(self.vector,channel,index),1.) - - def test_cvec_write_phas(self): - """ check new cvec phas elements are set with cvec_write_phas """ - for index in range(buf_size/2+1): - for channel in range(channels): - cvec_write_phas(self.vector,1.,channel,index) - for index in range(buf_size/2+1): - for channel in range(channels): - self.assertEqual(cvec_read_phas(self.vector,channel,index),1.) - -if __name__ == '__main__': - unittest.main() -- 2.26.2