def __test(src_order, src_gamma, dst_order, dst_gamma): np.random.seed(98765) src = np.random.rand(src_order + 1) dst = pysptk.gc2gc(src, src_gamma, dst_order, dst_gamma) assert np.all(np.isfinite(dst))