projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e89c9
)
extended test case
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 20 Oct 2009 18:08:57 +0000
(20:08 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 20 Oct 2009 18:08:57 +0000
(20:08 +0200)
tests/errors/e_cmp.pyx
patch
|
blob
|
history
diff --git
a/tests/errors/e_cmp.pyx
b/tests/errors/e_cmp.pyx
index 6d046209fb1793cc6fef8ae53d3294535fe45586..194703d4c584ed6cc145a4463b5a2a9057973747 100644
(file)
--- a/
tests/errors/e_cmp.pyx
+++ b/
tests/errors/e_cmp.pyx
@@
-2,9
+2,15
@@
cdef void foo():
cdef int bool, int1
cdef char *ptr2
cdef int *ptr3
+ cdef object i = 5
+
+ bool = i == ptr2 # evaluated in Python space
+ bool = ptr3 == i # error
bool = int1 == ptr2 # error
bool = ptr2 == ptr3 # error
+
_ERRORS = u"""
-5:13: Invalid types for '==' (int, char *)
-6:13: Invalid types for '==' (char *, int *)
+ 8:13: Invalid types for '==' (int *, Python object)
+ 9:13: Invalid types for '==' (int, char *)
+10:13: Invalid types for '==' (char *, int *)
"""