Exemplo n.º 1
0
def _extend_pool_results(base_results: PoolResults, extension: PoolResults):
    base_results.pickups.extend(extension.pickups)
    base_results.assignment.update(extension.assignment)
    add_resources_into_another(base_results.initial_resources,
                               extension.initial_resources)
Exemplo n.º 2
0
def test_add_resources_into_another(a, b, result):
    add_resources_into_another(a, b)
    assert a == result
Exemplo n.º 3
0
def _extend_pool_results(base_results: PoolResults, extension: PoolResults):
    base_results[0].extend(extension[0])
    base_results[1].update(extension[1])
    add_resources_into_another(base_results[2], extension[2])