mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
21 lines
242 B
Python
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
|