From: Stefan Behnel Date: Sat, 23 Nov 2013 19:45:54 +0000 (+0100) Subject: extend test X-Git-Tag: 0.20b1~208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=609688506cf955a701e2a0f8c1d94aeacb9cb069;p=platform%2Fupstream%2Fpython-cython.git extend test --- diff --git a/tests/run/int_float_builtins_as_casts_T400.pyx b/tests/run/int_float_builtins_as_casts_T400.pyx index a0b5a7d..ad8450b 100644 --- a/tests/run/int_float_builtins_as_casts_T400.pyx +++ b/tests/run/int_float_builtins_as_casts_T400.pyx @@ -181,3 +181,24 @@ def object_int(x): 4 """ return int(x) + + +@cython.test_fail_if_path_exists("//SimpleCallNode") +def no_args_int_cint(): + """ + >>> no_args_int_cint() + 0 + """ + cdef int x = int() + return x + + +@cython.test_fail_if_path_exists("//SimpleCallNode") +def no_args_float_cdouble(): + """ + >>> no_args_float_cdouble() + (0.0, 0.0) + """ + cdef double xd = float() + cdef float xf = float() + return xd, xf