Skip to content

Commit

Permalink
Add missing test again...
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Nov 20, 2018
1 parent fe0e6f1 commit b1951d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_mgcep.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,13 @@ def test_lpc():
def __test(order):
a1 = pysptk.lpc(x, order, use_scipy=False)
a2 = pysptk.lpc(x, order, use_scipy=True)
a3 = pysptk.levdur(pysptk.acorr(x, order))
a3 = pysptk.levdur(pysptk.acorr(x, order), use_scipy=False)
a4 = pysptk.levdur(pysptk.acorr(x, order), use_scipy=True)

assert np.all(np.isfinite(a1))
assert np.allclose(a1, a2)
assert np.allclose(a1, a3)
assert np.allclose(a1, a4)

for order in [15, 20, 25, 30, 40]:
yield __test, order
Expand Down

0 comments on commit b1951d3

Please sign in to comment.