From fb3f62e68a600cbb169b0a3ef7b53a6e568183dc Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 2 May 2016 14:54:50 +0200 Subject: [PATCH] python/tests/test_fvec.py: add test_pass_to_numpy --- python/tests/test_fvec.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python/tests/test_fvec.py b/python/tests/test_fvec.py index 2e3b5cb3..c147b1f6 100755 --- a/python/tests/test_fvec.py +++ b/python/tests/test_fvec.py @@ -135,6 +135,18 @@ class aubio_fvec_test_case(TestCase): assert_equal (b, [19, 0, 18]) assert_equal (a, b) + def test_pass_to_numpy(self): + a = fvec(10) + a = 1. + b = a + del a + assert_equal (b, 1.) + c = fvec(10) + c = b + del b + assert_equal (c, 1.) + del c + if __name__ == '__main__': from unittest import main main() -- 2.11.0