Skip to content
BSFishy edited this page Feb 25, 2020 · 1 revision

A simple equality comparison between two values. This is basically just a cleaner and more expressive way of writing Actual == Expected.

If the values are not meant to be directly compared, don't use this macro. For example, rather than actually comparing two strings, this will compare their pointers and almost always return false.

Arguments:

  • Actual: The value that was actually calculated.
  • Expected: The value that was expected.

Example:

Assert(EQ(1, 1));  // Passes
Assert(EQ(1, 0));  // Fails

Macros:

Clone this wiki locally