History

python/tests/test_cvec.py: simplify

Paul Brossier committed 10 years ago

Commit 67f00921 parent 55027f31 file · +2 −3Browse files

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

Unified · Split

python/tests/test_cvec.py+2−3
@@ -11,9 +11,8 @@ class aubio_cvec_test_case(TestCase): · 10 unmodified lines
1111
1212 def test_vector_created_with_zeroes(self):
1313 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)
1716 assert_equal(a.norm, 0.)
1817 assert_equal(a.phas, 0.)
1918

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