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

Function test_process_f2cmap_dict

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

process_f2cmap_dictFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…