Commits

Armin Rigo  committed 4f6eec1

Test for 33292fa6fbea.

  • Participants
  • Parent commits 33292fa

Comments (0)

Files changed (1)

File testing/test_verify.py

     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()