You can use local variables inside check all
block by entering var
keyword.
# Testing for sin & cos
def test() means
check all
var angle = 35
var cosinus = Math.cos(angle)
var sinus = Math.sin(angle)
var sum of squares = Math.pow(cosinus, 2) + Math.pow(sinus, 2)
# considering the features of the library java.lang.Math
# and inaccurate calculations when converting degrees to radians
sum of squares <= 1
sum of squares >= 0.999999
end
end def