echo 0
result_unit = ""

//=============================================================
// defining a simple function and run it
function mysin, tt {
   mysin=tt*tt
}

res = mysin(2)
if (res != 4) {
   result_unit += "FAILED: defining function: res = " + res + "\n"
}

//=============================================================
// print unit-test results
if (strlen(result_unit) != 0) {
   result_unit += "        in unit-test test_basic.dpuser!"
   print result_unit
   result_unit += "\n"
} else {
   if (quiet == 0) {
      result_unit = "SUCCESS: unit-test test_basic.dpuser ok"
      print result_unit
      result_unit += "\n"
   }
}
