Class IntMaxEqualFailure

Inheritance Relationships

Base Type

Class Documentation

class IntMaxEqualFailure : public mu::tiny::test::Failure
[source]

Failure for C integer equality checks (signed, any width).

Used by the C-interface wrappers for bool, int, long, and long long; values are widened to intmax_t before the comparison so that a single failure class covers all signed widths.

Public Functions

IntMaxEqualFailure(Shell *test, const char *file_name, int_least32_t line_number, long long expected, long long actual, const String &text)
Parameters:
  • test – The failing test.

  • file_name – Source file.

  • line_number – Line number.

  • expected – Expected value (widened to intmax_t).

  • actual – Actual value (widened to intmax_t).

  • text – Optional user text.