[pypy-commit] cffi define-integer-constant: Add more test to "#define FOO 0X10"

mozbugbox noreply at buildbot.pypy.org
Fri Apr 4 16:52:47 CEST 2014


Author: mozbugbox <mozbugbox at yahoo.com.au>
Branch: define-integer-constant
Changeset: r1494:4c0b4f9eb00b
Date: 2014-04-04 17:43 +0800
http://bitbucket.org/cffi/cffi/changeset/4c0b4f9eb00b/

Log:	Add more test to "#define FOO 0X10"

diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -1589,6 +1589,7 @@
             #define DOT 100
             #define DOT_OCT 0100l
             #define DOT_HEX 0x100u
+            #define DOT_HEX2 0X10
             #define DOT_UL 1000UL
             enum foo {AA, BB=DOT, CC};
         """)
@@ -1598,6 +1599,7 @@
         assert lib.DOT == 100
         assert lib.DOT_OCT == 0o100
         assert lib.DOT_HEX == 0x100
+        assert lib.DOT_HEX2 == 0x10
         assert lib.DOT_UL == 1000
 
 


More information about the pypy-commit mailing list