def test_uels_failure(): pysptk.uels(np.ones(256), 40)
def __test_itype(itype=0): pysptk.uels(x, itype=itype)
def __test_eps(etype=0, eps=0.0): pysptk.uels(x, etype=etype, eps=eps)
def __test(order): c = pysptk.uels(x, order) assert np.all(np.isfinite(c))
def test_uels_failure(): with pytest.raises(RuntimeError): pysptk.uels(np.ones(256), 40)
def test_uels(order): x = windowed_dummy_data(1024) c = pysptk.uels(x, order) assert np.all(np.isfinite(c))