Commit 1d98bd20 authored by Stefan Behnel's avatar Stefan Behnel

extend test

parent 5f7ad124
......@@ -24,6 +24,25 @@ def unop_floats():
return not1, plus1, minus1, not3, plus3, minus3, mix
@cython.test_fail_if_path_exists(
"//UnaryMinusNode",
"//UnaryPlusNode",
)
def unop_py_floats_tuple():
"""
>>> unop_floats()
(False, 2.0, -2.0, False, 2.0, -2.0, -2.0)
"""
return (
not 2.0,
+ 2.0,
- 2.0,
not not not 2.0,
+++ 2.0,
--- 2.0,
+-++-- 2.0)
@cython.test_fail_if_path_exists(
"//UnaryMinusNode",
"//UnaryPlusNode",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment