mardi 28 février 2017

What is a test script?

I was given an assignment:

Consider a list of single digit numbers. For example, [2,2,5]. Consider the successors of such lists. The successor of [2,2,5] is [2,2,6]. The successor of [2,3,9,9] is [2,4,0,0]. The successor of [9,9,9,9] is [1,0,0,0,0]. Write a Java program that takes such a list of numbers as input and returns its successor. You cannot express this list as a decimal number and compute its successor as the number may be so large that an overflow occurs. Make your program as short as possible. Submit code in JAVA along with compilation instructions and test scripts.

I have written the program and compiled and ran it successfully. The program does exactly what the assignment requires. However, I am not sure what the instructor mean by test scripts. Would someone please explain and provide an example to what it is? Thank you.

Note: If you decide to downvote the question, provide a reason so I can edit my question.

Aucun commentaire:

Enregistrer un commentaire