

def test_WPARAM_on_windows():
    if (sys.platform != 'win32'):
        py.test.skip('Only for Windows')
    ffi = FFI()
    ffi.cdef('void f(WPARAM);')
    ffi = FFI()
    value = int(ffi.cast('WPARAM', (- 42)))
    assert (value == ((sys.maxsize * 2) - 40))

dataset/ETHPy150Open johncsnyder/SwiftKitten/cffi/testing/cffi0/test_parsing.py test_WPARAM_on_windows/original