| 22 | } |
| 23 | |
| 24 | void printResult(bool passed, const char *message, float input, float output) { |
| 25 | if (passed) { |
| 26 | printf("[" COLOR_GREEN "PASSED" COLOR_RESET "]" |
| 27 | " : %s (in: %.10f, out: %.10f)\n", |
| 28 | message, input, output); |
| 29 | } else { |
| 30 | printf("[" COLOR_RED "FAILED" COLOR_RESET "]" |
| 31 | " : %s (in: %.10f, out: %.10f)\n", |
| 32 | message, input, output); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | void printResult(bool passed, const char *message, float input, |
| 37 | uint16_t output) { |
no outgoing calls
no test coverage detected