Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -135,6 +135,18 @@ class aubio_fvec_test_case(TestCase): · 134 unmodified lines | ||
| 135 | 135 | assert_equal (b, [19, 0, 18]) |
| 136 | 136 | assert_equal (a, b) |
| 137 | 137 | |
| 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 | + | |
| 138 | 150 | if __name__ == '__main__': |
| 139 | 151 | from unittest import main |
| 140 | 152 | main() |