Next: , Previous: TEST_RUN_FP_TOL, Up: Test Macros


3.2.8 TESTSTRING

test two strings for equivalence

Synopsis

     #include <testlib.h>
     
     TESTSTRING(desc, str, res )
     TESTSTRING_LINE(line, desc, str, res )

Parameters

line
the line number to output
desc
a short description of the test being performed
str1
the first string
res
the expected string

Description

TESTSTRING is called to perform a test of a string against an expected result.

Example

     TESTSTRING( "string test", foo, "foo" );