Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -11,9 +11,8 @@ class aubio_cvec_test_case(TestCase): · 10 unmodified lines | |||
| 11 | 11 | ||
| 12 | def test_vector_created_with_zeroes(self): | 12 | def test_vector_created_with_zeroes(self): |
| 13 | a = cvec(10) | 13 | a = cvec(10) |
| 14 | assert_equal(a.norm.shape[0], 10 / 2 + 1) | 14 | assert_equal(a.norm.shape[0], 10 // 2 + 1) |
| 15 | assert_equal(a.phas.shape[0], 10 / 2 + 1) | 15 | assert_equal(a.phas.shape[0], 10 // 2 + 1) |
| 16 | _ = a.norm[0] | ||
| 17 | assert_equal(a.norm, 0.) | 16 | assert_equal(a.norm, 0.) |
| 18 | assert_equal(a.phas, 0.) | 17 | assert_equal(a.phas, 0.) |
| 19 | 18 | ||