diff options
author | Armin Rigo <arigo@tunes.org> | 2013-02-12 16:41:12 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2013-02-12 16:41:12 +0100 |
commit | 9612c20ced946333eb8bb185c4f005822add0d79 (patch) | |
tree | e3e363bc2e61d387bddd6181fadf1e930eb56b0c | |
parent | ebb2fba7de36e40af6424793eb131cf78bc7a368 (diff) | |
download | cffi-auto-types.tar.gz |
An extra test for 'bool'.auto-types
-rw-r--r-- | testing/test_verify.py | 1 |
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(): |