Commit b9fafe85 authored by Stefan Behnel's avatar Stefan Behnel

extended test cases for public enums

parent 36c54dda
__doc__ = u"""
>>> BAR
3
>>> BAR == 3
True
>>> HONK == 3+2+1
True
>>> X == 4*5 + 1
True
>>> NONPUBLIC
Traceback (most recent call last):
NameError: name 'NONPUBLIC' is not defined
>>> NOWPUBLIC == 23 + 42
True
"""
DEF X = 4*5
cdef enum SECRET:
NONPUBLIC = 23 + 42
cdef public enum FOO:
BAR = 3
HONK = 3+2+1
NOWPUBLIC = NONPUBLIC
X = X + 1 # FIXME: should this really work?
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment