summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-02-12 16:41:12 +0100
committerArmin Rigo <arigo@tunes.org>2013-02-12 16:41:12 +0100
commit9612c20ced946333eb8bb185c4f005822add0d79 (patch)
treee3e363bc2e61d387bddd6181fadf1e930eb56b0c
parentebb2fba7de36e40af6424793eb131cf78bc7a368 (diff)
downloadcffi-auto-types.tar.gz
An extra test for 'bool'.auto-types
-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():