Skip to content

Make assert_true(), assert_false() more verbose

Both assert_true(expression) and assert_false(expression) print the expression when the assertion fails. Its not very clear on seeing the expression that what exactly is the error, whether its the expression being true or it being false.

This MR changes the assert_true() and assert_false() such that on failure of assertion:

  • assert_true(expression) prints : expression is false
  • assert_false(expression) prints : expression is true

Merge request reports