from fastcore.test import *
from fastcore.parallel import *

if __name__ == "__main__":
    inp,exp = range(50),range(1,51)

    test_eq(parallel(add_one, inp, n_workers=2, progress=False), exp)
    test_eq(parallel(add_one, inp, n_workers=1, a=2), range(2,52))