From: Stefan Behnel Date: Tue, 20 Oct 2009 18:08:57 +0000 (+0200) Subject: extended test case X-Git-Tag: 0.13.beta0~2^2~121^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=196cb6dd69df542b7581d90a5dacba257fcf0664;p=cython.git extended test case --- diff --git a/tests/errors/e_cmp.pyx b/tests/errors/e_cmp.pyx index 6d046209..194703d4 100644 --- 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 *) """