def test_hashable():
 hash(interval(1, 1))
 hash(interval(1, 1, is_valid=True))
 hash(interval((-4), (-0.5)))
 hash(interval((-2), (-0.5)))
 hash(interval(0.25, 8.0))

def test_hashable ( ) : hash ( interval ( 1 , 1 ) ) hash ( interval ( 1 , 1 , is_valid = True ) ) hash ( interval ( ( - 4 ) , ( - 0.5 ) ) ) hash ( interval ( ( - 2 ) , ( - 0.5 ) ) ) hash ( interval ( 0.25 , 8.0 ) )
test that interval objects are hashable .