Author: Armin Rigo <[email protected]>
Branch:
Changeset: r978:4f6eec10c1b2
Date: 2012-09-27 19:02 +0200
http://bitbucket.org/cffi/cffi/changeset/4f6eec10c1b2/
Log: Test for 33292fa6fbea.
diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -469,6 +469,10 @@
assert int(ffi.cast('enum ee', 'EE2')) == 11
assert int(ffi.cast('enum ee', 'EE3')) == -10
py.test.raises(ValueError, ffi.cast, 'enum ee', '__dotdotdot0__')
+ #
+ # try again
+ ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")
+ assert int(ffi.cast('enum ee', 'EE2')) == 11
def test_full_enum():
ffi = FFI()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit