I’m stuck on Stage #QP2. Even though I managed to pass the test cases for this particular stage, the tests for the previous stage(specifically #CZ2) won’t pass. Here is the output:
[tester::#OO8] Running tests for Stage #OO8 (Print a prompt)
[tester::#OO8] Running ./your_program.sh
[your-program] $
[tester::#OO8] ✓ Received prompt
[tester::#OO8] Test passed.
[tester::#CZ2] Running tests for Stage #CZ2 (Handle invalid commands)
[tester::#CZ2] Running ./your_program.sh
[your-program] $ invalid_orange_command
[your-program]
[tester::#CZ2] Output does not match expected value.
[tester::#CZ2] Expected: "invalid_orange_command: command not found"
[tester::#CZ2] Received: " "
[tester::#CZ2] Assertion failed.
[tester::#CZ2] Test failed
But when I test it on my own it clearly works:
$ invalid_orange_command
invalid_orange_command: command not found
$
It may pass the stage, but when I run the program on my computer it doesn’t work. It has some really weird behaviour. When I press enter, it just moves the cursor to the begging of the line and the only thing you can do is exit the program with ctrl+c