def test_Hyperpipe_Data_yarray(): test_value = np.array([0, 1, 2, 3]) assert (Hyperpipe.Data(y=test_value).y == test_value).all()
def test_Hyperpipe_Data_Xarray(): test_value = np.ndarray((3, ), buffer=np.array([0, 1, 2, 3]), dtype=int) test_value = np.vstack([test_value, test_value]) assert (Hyperpipe.Data(X=test_value).X == test_value).all()
def test_Hyperpipe_Data_y(): test_value = [0, 1, 2, 3] assert Hyperpipe.Data(y=test_value).y == test_value
def test_Hyperpipe_Data_XEqNone(): assert Hyperpipe.Data().X == None