2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Panel
Testing Your Function
For Testing a user defined function , the function has to be accompanied by a method Generally started with header "//@Test". The user has to save the created function before proceeding with Testing the Function.

The following code snippet shows the Test method required to test the previously created Append Function.

Code Block

 //@Test
function testFirstAndLastName(){//@Test
function testFirstAndLastName(){
  var firstname = "Xxxxxx";
  var lastname = "Yyyyy";
  addFirstAndLastNames(firstname, lastname);
}  var firstname = "Xxxxxx"; var lastname = "Yyyyy";  addFirstAndLastNames(firstname, lastname);
}