[lang-ref] ( arithmetic_operator_mod ) ( python )
def test_arithmetic_operator_mod():
# %
assert 11 % 10 == 1
assert 9 % 10 == 9
assert 0 % 10 == 0
assert -1 % 10 == 9
assert divmod( 11, 10 )[1] == 1
assert divmod( 9, 10 )[1] == 9
assert divmod( 0, 10 )[1] == 0
assert divmod( -1, 10 )[1] == 9