()
| 40 | |
| 41 | |
| 42 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…