'Test multinomial(n, pvals)'

def test_multinomial_2(self):

    cfunc = jit(nopython=True)(numpy_multinomial2)
    (n, pvals) = (1000, self.pvals)
    res = cfunc(n, pvals)
    self._check_sample(n, pvals, res)
    pvals = list(pvals)
    res = cfunc(n, pvals)
    self._check_sample(n, pvals, res)
    n = 1000000
    pvals = np.array([1, 0, (n // 100), 1], dtype=np.float64)
    pvals /= pvals.sum()
    res = cfunc(n, pvals)
    self._check_sample(n, pvals, res)
