diff options
Diffstat (limited to 'tests/run/cdivision_CEP_516.pyx')
-rw-r--r-- | tests/run/cdivision_CEP_516.pyx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run/cdivision_CEP_516.pyx b/tests/run/cdivision_CEP_516.pyx index c8b24a0e1..fbd2def3a 100644 --- a/tests/run/cdivision_CEP_516.pyx +++ b/tests/run/cdivision_CEP_516.pyx @@ -27,6 +27,9 @@ True >>> [test_cdiv_cmod(a, b) for a, b in v] [(1, 7), (-1, -7), (1, -7), (-1, 7)] +>>> [test_cdiv_cmod(a, b) for a, b in [(4, -4), (4, -2), (4, -1)]] +[(-1, 0), (-2, 0), (-4, 0)] + >>> all([mod_int_py(a,b) == a % b for a in range(-10, 10) for b in range(-10, 10) if b != 0]) True >>> all([div_int_py(a,b) == a // b for a in range(-10, 10) for b in range(-10, 10) if b != 0]) |