def test_batch_single(): for batch_size in range(1, 10): batched = tuple(main.batch([1], batch_size=batch_size)) assert batched == ((1,),)
def test_batch_single(): for batch_size in range(1, 10): batched = tuple(main.batch([1], batch_size=batch_size)) assert batched == ((1, ), )
def test_batch_empty(): for batch_size in range(1, 10): assert len( list(main.batch([], batch_size=batch_size))) == 0
def test_batch_empty(): for batch_size in range(1, 10): assert len(list(main.batch([], batch_size=batch_size))) == 0