Published on :
Macro CREATION_INTERNE

Unit test for the depby macro

This code is also available in: Deutsch Español Français
This script is intended to test the %depby macro. It contains commented instructions for assertions (unit tests) and executes a direct call to the macro, storing the result in a temporary global variable for verification in the log.
Data Analysis

Type : CREATION_INTERNE


The script only manipulates macro variables and does not depend on any external data tables.

1 Code Block
MACRO CALL
Explanation :
The block initializes a global macro variable 't', calls the %depby macro with the 'option' argument and the output variable 't'. Then, it displays the value of 't' in the log via %put and cleans up the environment by deleting 't.
Copied!
1%*Please write test code here;;
2%*%asserteq( ,%depby());
3%*%assertne( ,%depby());
4%*%assertref( );
5 
6%global t;
7%depby(option,t);
8%put &t.;
9%symdel t;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.