2 """if the first argument is False it raise an exception with a default message, you can specify the message in the second argument (optional)"""
4 raise Exception(
'check failed')
8 raise Exception(message)
11 """if the absolute difference between the two firsts argument is smaller then the third argument it raise an exception with a default message, you can specify the message in the fourth argument (optional)"""
13 raise Exception(
'check close failed (first value:'+str(a)+
', second value:'+str(b)+
')')
17 raise Exception(message+
' (first value:'+str(a)+
', second value:'+str(b)+
')')
20 """if the two firsts arguments are not equal it raise an exception with a default message, you can specify the message in the third argumnt (optional)"""
22 raise Exception(
'check equal failed (first value:'+str(a)+
', second value:'+str(b)+
')')
26 raise Exception(message+
' (first value:'+str(a)+
', second value:'+str(b)+
')')
29 """raise an exception with a default message, tou can specify the message in the first argument (optional)"""
30 raise Exception(
'error occured')
33 raise Exception(message)
def cf_check_close(a, b, close)