* @brief Check if a condition is met, report the result, and keep count of the total number of successes and failures. * * @param condition The condition to check. */
| 463 | * @param condition The condition to check. |
| 464 | */ |
| 465 | void check(const bool condition) |
| 466 | { |
| 467 | if (condition) |
| 468 | { |
| 469 | logln_ansi(ansi_success, "-> passed."); |
| 470 | ++test_results::tests_succeeded; |
| 471 | } |
| 472 | else |
| 473 | { |
| 474 | logln_ansi(ansi_error, "-> FAILED!"); |
| 475 | ++test_results::tests_failed; |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * @brief Check if the expected result has been obtained, report the result, and keep count of the total number of successes and failures. |
no test coverage detected