diff options
author | Tom Krauss <thomas.p.krauss@gmail.com> | 2017-03-27 08:27:52 -0500 |
---|---|---|
committer | Tom Krauss <thomas.p.krauss@gmail.com> | 2017-03-27 08:27:52 -0500 |
commit | 94dcdb3d831b70d1c0f1cc2223895f0115fd6c76 (patch) | |
tree | 88b6703b6ed186c89bdcee0b8ce340b2f472c32a /testing/cffi0/test_verify.py | |
parent | 10c4d141bb0393d3bea52a29f3068bedbb4bb2de (diff) | |
download | cffi-94dcdb3d831b70d1c0f1cc2223895f0115fd6c76.tar.gz |
tests pass. Had to #include <complex.h> - might want to make that optional
Diffstat (limited to 'testing/cffi0/test_verify.py')
-rw-r--r-- | testing/cffi0/test_verify.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py index 25430bd..53c3f3f 100644 --- a/testing/cffi0/test_verify.py +++ b/testing/cffi0/test_verify.py @@ -241,14 +241,15 @@ def test_primitive_category(): F = tp.is_float_type() I = tp.is_integer_type() assert C == (typename in ('char', 'wchar_t')) - assert F == (typename in ('float', 'double', 'long double')) + assert F == (typename in ('float', 'double', 'long double', 'float _Complex', 'double _Complex')) assert I + F + C == 1 # one and only one of them is true def test_all_integer_and_float_types(): typenames = [] for typename in all_primitive_types: if (all_primitive_types[typename] == 'c' or - typename == '_Bool' or typename == 'long double'): + typename == '_Bool' or typename == 'long double' + or '_Complex' in typename): # omit _Complex since ffi does not yet support pass else: typenames.append(typename) |