def test_mergeComps_K2_D3_noELBO(self, K=2, D=3):
    SS = self.makeSuffStatBagAndFillWithOnes(K=K, D=D)
    SS.mergeComps(0, 1)

    assert SS.K == K - 1
    assert np.allclose(SS.s, 1)
    assert np.allclose(SS.N, 2)
    assert np.allclose(SS.x, 2*np.ones(D))
    assert np.allclose(SS.xxT, 2*np.ones((D,D)))
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/suffstats/TestSuffStatBag.py/TestSuffStatBag.test_mergeComps_K2_D3_noELBO/original