Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stray output with out-of-order error #38

Merged
merged 1 commit into from
Apr 21, 2024
Merged

Fix stray output with out-of-order error #38

merged 1 commit into from
Apr 21, 2024

Conversation

XavierCooney
Copy link
Contributor

A missing comma led to implicit string concatenation in the error message for when the output lines are correct but in the wrong order:

$ cat tests.txt
files=prog.c
1 expected_stdout='1\n2\n3\n'
$ cat prog.c
#include <stdio.h>
int main(void) {
    printf("3\n2\n1\n");
}
$ autotest -a .
[...]
Test 1 (prog) - failed (Incorrect output)

Your program produced the correct output lines but in the wrong order.
redYour program produced these 3 lines of output:
[...]

@Dylan-Brotherston Dylan-Brotherston merged commit 8e43792 into COMP1511UNSW:main Apr 21, 2024
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants