def test_math_sin(): import math ffi = FFI() ffi.cdef("float sin(double); double cos(double);") lib = verify(ffi, 'test_math_sin', '#include <math.h>') assert lib.cos(1.43) == math.cos(1.43)