2022

Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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.

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

  • No labels