History

python/tests/test_fvec.py: add test_pass_to_numpy

Paul Brossier committed 10 years ago

Commit fb3f62e1 parent cdfad0c1 file · +12 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_fvec.py+12−0
@@ -135,6 +135,18 @@ class aubio_fvec_test_case(TestCase): · 134 unmodified lines
135135 assert_equal (b, [19, 0, 18])
136136 assert_equal (a, b)
137137
138+ def test_pass_to_numpy(self):
139+ a = fvec(10)
140+ a = 1.
141+ b = a
142+ del a
143+ assert_equal (b, 1.)
144+ c = fvec(10)
145+ c = b
146+ del b
147+ assert_equal (c, 1.)
148+ del c
149+
138150 if __name__ == '__main__':
139151 from unittest import main
140152 main()

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