I am running into a problem where the output is correct but it is missing a \n
according to the tester. This shouldn’t be cause for a failure. I am doing the GO shell project.
Code:
func HandleCommand(command string, args []string) {
cmd := exec.Command(command, args...)
output, err := cmd.CombinedOutput()
if err != nil {
utils.PrintUnknown(command)
return
}
outputStr := string(output)
fmt.Print(outputStr)
}
Output:
[tester::#IP1] Running ./your_program.sh
[your-program] $
[tester::#IP1] > my_exe Emily
[your-program] Hello emily! The secret code is 3597454869.
[your-program] $
[tester::#IP1] Expected first line of output to match "Hello Emily! The secret code is 3597454869.\n", got "Hello emily! The secret code is 3597454869."
Should the tester be this pedantic?