projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdfad0c
)
python/tests/test_fvec.py: add test_pass_to_numpy
author
Paul Brossier
<piem@piem.org>
Mon, 2 May 2016 12:54:50 +0000
(14:54 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 2 May 2016 12:54:50 +0000
(14:54 +0200)
python/tests/test_fvec.py
patch
|
blob
|
history
diff --git
a/python/tests/test_fvec.py
b/python/tests/test_fvec.py
index
2e3b5cb
..
c147b1f
100755
(executable)
--- 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()