def test_list_output():

    @task
    def t1(a: int) -> str:
        a = (a + 2)
        return ('world-' + str(a))

    @workflow
    def lister() -> typing.List[str]:
        s = []
        for i in range(10):
            s.append(t1(a=i))
        return s
    assert (len(lister.interface.outputs) == 1)
    binding_data = lister._output_bindings[0].binding
    assert (binding_data.collection is not None)
    assert (len(binding_data.collection.bindings) == 10)
def test_list_output():

    @task
    def t1(a: int) -> str:
        a = (a + 2)
        return ('world-' + str(a))

    @workflow
    def lister() -> typing.List[str]:
        s = []
        for i in range(10):
            s.append(t1(a=i))
        return s
    assert (len(lister.interface.outputs) == 1)
    binding_data = lister._output_bindings[0].binding
    assert (binding_data.collection is not None)
    assert (len(binding_data.collection.bindings) == 10)