Commits

Armin Rigo committed c1ea20e

An extra test for 'bool'.

  • Participants
  • Parent commits 0c6eccf
  • Branches auto-types

Comments (0)

Files changed (1)

File 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():