Author: Armin Rigo <[email protected]>
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
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit