a ;jg”ã@sFddlmZddlZddlZddlmZGdd„dejƒZdd„Z dS) é)ÚutiléN)Úassert_allclosec@sFeZdZe dddd¡gZejjdd„ƒZ dd„Z d d „Z d d „Z d S)ÚTestISOCZtestsÚsrcZ isocintrinz isoCtests.f90cCs$|jj dd¡}d}||ks J‚dS)Nréé)ÚmoduleÚcoddityZc_add©ÚselfÚoutÚexp_out©rúD/usr/local/lib/python3.9/site-packages/numpy/f2py/tests/test_isoc.pyÚ test_c_double szTestISOC.test_c_doublecCs$|jj dd¡}d}||ks J‚dS)Nréé)r r Úwatr rrrÚtest_bindc_functionszTestISOC.test_bindc_functioncCs$|jj dd¡}d}||ks J‚dS)Nrré)r r Z c_add_int64r rrrÚtest_bindc_kindsszTestISOC.test_bindc_kindscCsBt gd¢¡}t gd¢¡}|jj ||¡}|d}t||ƒdS)N)rrrr)ÚnpÚarrayr r Zadd_arrr)r ÚaÚbr rrrrÚtest_bindc_add_arrs zTestISOC.test_bindc_add_arrN) Ú__name__Ú __module__Ú __qualname__rZgetpathÚsourcesÚpytestÚmarkZslowrrrrrrrrrsÿ rcCspddlm}dddii}dddii}dd d œ}dddd œidg}}||||ƒ\}}||ks`J‚||kslJ‚dS) Nr)Úprocess_f2cmap_dictÚintegerÚ8Ú rubbish_typeZINTEGERÚ4ÚintÚlong)r(r&)r%r')Znumpy.f2py.auxfuncsr#)r#Z f2cmap_allZnew_mapZc2py_mapZexp_mapZ exp_maptypZres_mapZ res_maptyprrrÚtest_process_f2cmap_dict's     r*) ÚrÚnumpyrr!Z numpy.testingrZF2PyTestrr*rrrrÚs  !