예제 #1
0
def test_expand_item(item: T.Any, shape: T.Any, expected: T.Any) -> None:
    assert dataset.expand_item(item, shape) == expected
예제 #2
0
def test_expand_item_error() -> None:
    with pytest.raises(TypeError):
        dataset.expand_item((None, ), (1, ))
예제 #3
0
def test_expand_item(item, shape, expected):
    assert dataset.expand_item(item, shape) == expected