MCPcopy Create free account
hub / github.com/numpy/numpy / test_process_f2cmap_dict

Function test_process_f2cmap_dict

numpy/f2py/tests/test_isoc.py:38–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_process_f2cmap_dict():
39 from numpy.f2py.auxfuncs import process_f2cmap_dict
40
41 f2cmap_all = {"integer": {"8": "rubbish_type"}}
42 new_map = {"INTEGER": {"4": "int"}}
43 c2py_map = {"int": "int", "rubbish_type": "long"}
44
45 exp_map, exp_maptyp = ({"integer": {"8": "rubbish_type", "4": "int"}}, ["int"])
46
47 # Call the function
48 res_map, res_maptyp = process_f2cmap_dict(f2cmap_all, new_map, c2py_map)
49
50 # Assert the result is as expected
51 assert res_map == exp_map
52 assert res_maptyp == exp_maptyp

Callers

nothing calls this directly

Calls 1

process_f2cmap_dictFunction · 0.90

Tested by

no test coverage detected