Define STRCMP_EQUAL

Define Documentation

STRCMP_EQUAL(expected, actual)
[source]

Fail if the C strings expected and actual differ (strcmp).

Use this instead of CHECK_EQUAL for const char* values — CHECK_EQUAL compares the pointer addresses, not the string content.

Parameters:
  • expected – Expected C string (may be nullptr).

  • actual – Actual C string (may be nullptr).