cimport cython
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def double_to_short_int(double x):
"""
cdef short r = int(x)
return r
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def double_to_pyssizet_int(double x):
"""
cdef Py_ssize_t r = int(x)
return r
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def int_to_pyssizet_int(int x):
"""
cdef Py_ssize_t r = int(x)
return r
-## @cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+## @cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
## @cython.test_fail_if_path_exists("//SimpleCallNode")
## def double_to_pyssizet_float(double x):
## """
## cdef Py_ssize_t r = float(x)
## return r
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def int_to_short_int(int x):
"""
cdef short r = int(x)
return r
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def short_to_float_float(short x):
"""
cdef float r = float(x)
return r
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def short_to_double_float(short x):
"""
cdef double r = float(x)
return r
-@cython.test_assert_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_assert_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_fail_if_path_exists("//SimpleCallNode")
def short_to_double_int(short x):
"""
return r
@cython.test_fail_if_path_exists("//SimpleCallNode",
- "//SingleAssignmentNode/CastNode")
+ "//SingleAssignmentNode/TypecastNode")
def double_to_double_float(double x):
"""
>>> 4.05 < double_to_double_float(4.1) < 4.15
# tests that cannot be optimised
-@cython.test_fail_if_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_fail_if_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_assert_path_exists("//SimpleCallNode")
def double_to_py_int(double x):
"""
"""
return int(x)
-@cython.test_fail_if_path_exists("//SingleAssignmentNode/CastNode")
+@cython.test_fail_if_path_exists("//SingleAssignmentNode/TypecastNode")
@cython.test_assert_path_exists("//SimpleCallNode")
def double_to_double_int(double x):
"""