echo 0
result_unit = ""
rv = 0
//=============================================================
// rv is incremented for every successful test
// at the end of the unit test rv is compared to the number of executed tests

testname = "test_002_cos"
nr_success = 3

x = cos(2)
rv = rv + comparedbl(x, -0.416146, 0.1)
x = cos(-2)
rv += comparedbl(x, -0.416146, 0.1)
x = cos(3.2)
rv += comparedbl(x, -0.99829477, 0.1)

//=============================================================
if (rv != nr_success) {
   result_unit += "FAILED: unit-test test_functions/" + testname + "!"
   print result_unit
   result_unit += "\n"
} else {
   if (quiet == 0) {
      result_unit = "SUCCESS: unit-test test_functions/" + testname + " ok"
      print result_unit
      result_unit += "\n"
   }
}
