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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
1ce5c64d
Commit
1ce5c64d
authored
Oct 31, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error test case for boolean cooercion of incompatible types
parent
9289c16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
tests/errors/e_boolcoerce.pyx
tests/errors/e_boolcoerce.pyx
+42
-0
No files found.
tests/errors/e_boolcoerce.pyx
0 → 100644
View file @
1ce5c64d
ctypedef
struct
struct_type_not_boolean
:
int
i
float
f
if
struct_type_not_boolean
:
print
(
"INVALID CODE"
)
cdef
struct
struct_not_boolean
:
int
i
float
f
if
struct_not_boolean
:
print
(
"INVALID CODE"
)
ctypedef
union
union_type_not_boolean
:
int
i
float
f
if
union_type_not_boolean
:
print
(
"INVALID CODE"
)
cdef
union
union_not_boolean
:
int
i
float
f
if
union_not_boolean
:
print
(
"INVALID CODE"
)
_ERRORS
=
u"""
5:26: 'struct_type_not_boolean' is not a constant, variable or function identifier
5:26: Type 'struct_type_not_boolean' not acceptable as a boolean
12:21: 'struct_not_boolean' is not a constant, variable or function identifier
12:21: Type 'struct_not_boolean' not acceptable as a boolean
19:25: 'union_type_not_boolean' is not a constant, variable or function identifier
19:25: Type 'union_type_not_boolean' not acceptable as a boolean
26:20: 'union_not_boolean' is not a constant, variable or function identifier
26:20: Type 'union_not_boolean' not acceptable as a boolean
"""
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