Testing a macro

When you create a macro, you would normally fix any syntax and run-time errors before debugging begins. Correcting syntax and run-time errors may enable the macro to run but does not guarantee that the program does what it was intended to do. That is, given certain input, does it produce the correct output? Moreover, does it always produce the correct output? A program may appear to do what it is meant to do most of the time, but if it produces the wrong output, even occasionally, then the macro is hardly likely to be acceptable. Hence, test data and a test plan is required that is enough to give confidence in the macro, but not so scrupulous that excessive time is spent on testing.

0 0

Post a comment