def test_numpy_slices_tuple_2():
    logger.info('Test slicing a tuple of list.')
    np_data = ([1, 2], [3, 4], [5, 6])
    expected = [[1, 3, 5], [2, 4, 6]]
    ds = de.NumpySlicesDataset(np_data, shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data, expected[i]).all()
    assert (sum([1 for _ in ds]) == 2)
def test_numpy_slices_tuple_2():
    logger.info('Test slicing a tuple of list.')
    np_data = ([1, 2], [3, 4], [5, 6])
    expected = [[1, 3, 5], [2, 4, 6]]
    ds = de.NumpySlicesDataset(np_data, shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data, expected[i]).all()
    assert (sum([1 for _ in ds]) == 2)