def test_double_sum_Py(): dag = create_double_sum() modname = "ignition_double_sum_py" modpath = PythonCodePrinter(dag).to_module(modname) sys.path.append(modpath) double_sum = import_module(modname) assert (double_sum.double_sum(3) == 20)
def test_double_sum_Py(): dag = create_double_sum() modname = "ignition_double_sum_py" modpath = PythonCodePrinter(dag).to_module(modname) sys.path.append(modpath) double_sum = import_module(modname) assert(double_sum.double_sum(3) == 20)
def test_double_sum_C(): dag = create_double_sum() modname = "ignition_double_sum_c" modpath = CCodePrinter(dag).to_ctypes_module(modname) sys.path.append(modpath) double_sum = import_module(modname) assert (double_sum.double_sum(3) == 20)
def test_double_sum_C(): dag = create_double_sum() modname = "ignition_double_sum_c" modpath = CCodePrinter(dag).to_ctypes_module(modname) sys.path.append(modpath) double_sum = import_module(modname) assert(double_sum.double_sum(3) == 20)