Commit 64ec20eb authored by Stefan Behnel's avatar Stefan Behnel

extended test case for cascaded comparisons

--HG--
extra : transplant_source : %5B%CA%EDn_W3%84%FB%11.f%5C%FC%0E%F9%26%A9%29R
parent 59ee0280
......@@ -38,6 +38,28 @@ def cascaded_c(double a, double b, double c):
"""
return a < b < c
def cascaded_mix_pyleft(a, double b, double c):
"""
>>> cascaded_mix_pyleft(1, 2, 3)
True
>>> cascaded_mix_pyleft(1, 2, -1)
False
>>> cascaded_mix_pyleft(10, 2, 3)
False
"""
return a < b < c
def cascaded_mix_pyright(double a, double b, c):
"""
>>> cascaded_mix_pyright(1, 2, 3)
True
>>> cascaded_mix_pyright(1, 2, -1)
False
>>> cascaded_mix_pyright(10, 2, 3)
False
"""
return a < b < c
def typed_cmp(list L):
"""
>>> typed_cmp([1,2,3])
......
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