예제 #1
0
 def gt2(a, b):
     return operators.lt(b, a + 1.2)
예제 #2
0
 def lt2(a, b):
     return operators.lt(a + 1.2, b)
def test_lt(a):
    "Check that a - 1.0 is always less than a"
    assert lt(a - 1.0, a) == 1.0
    assert lt(a, a - 1.0) == 0.0