Testing a Macro occurs in 2 stages :
•First the Macro is compiled to verify that it follows the syntactical rules of the Q++ Macro Language, and that the Q++ Compiler understands it. This step verifies that the syntax of the Macro is correct, and generates compiler messages.
•Then, if a Macro is not obvious enough, you may want to test its behaviour, using some test data, to make sure that what the compiler has understood is really what you meant. This step verifies that the logic of a Macro is correct.
Q++ provides you with powerful tools to test both the syntax and logic of the Macros you write.