Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
b9fafe85
Commit
b9fafe85
authored
Sep 11, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test cases for public enums
parent
36c54dda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
tests/run/public_enum.pyx
tests/run/public_enum.pyx
+19
-2
No files found.
tests/run/public_enum.pyx
View file @
b9fafe85
__doc__
=
u"""
__doc__
=
u"""
>>> BAR
>>> BAR == 3
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
:
cdef
public
enum
FOO
:
BAR
=
3
BAR
=
3
HONK
=
3
+
2
+
1
NOWPUBLIC
=
NONPUBLIC
X
=
X
+
1
# FIXME: should this really work?
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment