IO-Test: Improve error message for substitution
The error message for substitutions is missing a concrete paragraph about what is substituted.
Substitution
============
- In line 6 the value assigned to n was replaced with 0.
should be added to make the message:
Status
======
Correct return code! Expected: '0' Obtained: '0'
Wrong output on stdout!
Correct output on stderr!
Substitution
============
- In line 6 the value assigned to n was replaced with 0.
Obtained output on stdout
=========================
negative
Expected output on stdout
=========================
positive
Hint stdout
===========
[nega->posi]tive
Tested code
===========
/* TODO: include other headers if needed */
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n = 0; // TODO: Choose a value for n
/* TODO: Implement logic */
if(n > 0)
printf("positive");
else
printf("negative");
return EXIT_SUCCESS;
}
Hint
====
Did you try 'int n = 0'?