Published on :
Test CREATION_INTERNE

Unit tests for the assertne macro

This code is also available in: Deutsch Español Français
This script performs several calls to the %assertne macro to validate cases of inequality between numerical values, character strings, and empty strings or strings containing spaces.
Data Analysis

Type : CREATION_INTERNE


No external data manipulated; the script relies solely on macro calls to test the logic.

1 Code Block
MACRO CALL
Explanation :
Series of calls to the %assertne macro to test inequality between 0 and 1, between two different character strings ('x y' vs 'x x'), and between a string containing a space and an empty string.
Copied!
1%assertne(0,1);
2%assertne(x y,x x);
3%assertne(%str( ),%str());
4 
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.