summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/test_verify.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/test_verify.py b/testing/test_verify.py
index 08c6b6a..58ccda5 100644
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -1249,6 +1249,7 @@ def test_cast_from_int_type_to_bool():
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():