CxxTest/cxxtest — Issue #32: Explicit support for string comparisons
Author: whart222
Created: 2012-02-04 18:16:25+00:00
State: open

Add a test like TS_ASSERT_STRING_EQUALS() to compare char* as strings.

Use an explicit max-comparison length:

TS_ASSERT_STRING_EQUALS(str1, str2, maxlen) == TS_ASSERT_SAME_DATA(str1, str2,
strnlen(str1,MAX_STR))