Files
RustPython/tests/snippets/floats.py
2019-02-08 20:34:33 +01:00

21 lines
242 B
Python

1 + 1.1
a = 1.2
b = 1.3
c = 1.2
assert a < b
assert not b < a
assert a <= b
assert a <= c
assert b > a
assert not a > b
assert not a > c
assert b >= a
assert c >= a
assert not a >= b
assert a + b == 2.5
assert a - c == 0
assert a / c == 1