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_001_sin"
nr_success = 3

x = sin(2)
rv = rv + comparedbl(x, 0.909297, 0.1)
x = sin(-2)
rv += comparedbl(x, -0.909297, 0.1)
x = sin(3.2)
rv += comparedbl(x, -0.0583741, 0.1)

complex_number = complex(1, 1)
print "Given complex number = " 
print complex_number
print "sin(complex_number) = " 
print sin(complex_number)

/*
// Creating new fits data and printing it to test it
fits_data = fits(2,2)
x = fits_data,/values 
print "fits_data = " 
print x
   
// Creating sine of fits data and printing it to test it
y = sin(fits_data),/values
print "sin(fits_data) = " 
print y
*/

//=============================================================
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"
   }
}
