it’s expecting the line “act” with the pattern “ca?t” to give 0 which means it satisfies the conditions but it doesn’t. “ca?t” can be ct or cat not act.
here’s the logs:
$ echo -n “act” | ./your_program.sh -E “ca?t”
remote: [your_program] Logs from your program will appear here!
remote: [your_program] pattern[i]: c = a
remote: [your_program] returned j: 0 false
remote: [tester::#NY8] expected exit code 0, got 1
remote: [tester::#NY8] Test failed
( later on I found out it’s also happening with certain other cases and I have made specific if conditions in my code for them so I could work on the last step without wasting time )
here’s the link to the git repo : GitHub - Wassimxietty/grep-go: I made grep as a coding challenge while learning go; here's how it's going