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 | 12 | def test_vector_created_with_zeroes(self): |
| 13 | 13 | a = cvec(10) |
| 14 | − assert_equal(a.norm.shape[0], 10 / 2 + 1) | |
| 15 | − assert_equal(a.phas.shape[0], 10 / 2 + 1) | |
| 16 | − _ = a.norm[0] | |
| 14 | + assert_equal(a.norm.shape[0], 10 // 2 + 1) | |
| 15 | + assert_equal(a.phas.shape[0], 10 // 2 + 1) | |
| 17 | 16 | assert_equal(a.norm, 0.) |
| 18 | 17 | assert_equal(a.phas, 0.) |
| 19 | 18 | |