Author: Armin Rigo <ar...@tunes.org>
Branch: auto-types
Changeset: r1146:c1ea20ec5783
Date: 2013-02-12 16:41 +0100
http://bitbucket.org/cffi/cffi/changeset/c1ea20ec5783/

Log:    An extra test for 'bool'.

diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -1249,6 +1249,7 @@
         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():
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to