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
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

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