Define CHECK_EQUAL

Define Documentation

CHECK_EQUAL(expected, actual)
[source]

Fail if expected != actual.

Requires operator!=() and a string_from() overload for the operand types. Uses common-type arithmetic conversion so signed/unsigned pairs are promoted consistently without -Wsign-compare warnings.

Parameters:
  • expected – Expected value.

  • actual – Actual value.