Commits

Armin Rigo committed c1ea20e

An extra test for 'bool'.

Comments (0)

Files changed (1)

testing/test_verify.py

         for sign in ['signed', 'unsigned']:
             type = '%s %s' % (sign, basetype)
             assert int(ffi.cast("_Bool", ffi.cast(type, 42))) == 1
+            assert int(ffi.cast("bool", ffi.cast(type, 42))) == 1
             assert int(ffi.cast("_Bool", ffi.cast(type, 0))) == 0
 
 def test_addressof():