Skip to content

Commit

Permalink
Fix logic error in test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVinyard committed Apr 7, 2018
1 parent b501b53 commit ef37b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zounds/loudness/test_loudness.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def test_handles_zeros(self):
np.testing.assert_allclose(maxes, scaled.max(axis=-1))

def test_handles_negative_numbers_correctly(self):
x = np.random.random_sample((100, 3))
x = np.random.normal(0, 1, (10, 300))
scaled = instance_scale(x, axis=-1)
np.testing.assert_allclose(1, scaled.max(axis=-1))
np.testing.assert_allclose(1, np.abs(scaled).max(axis=-1))

0 comments on commit ef37b3a

Please sign in to comment.