welf
June 1, 2024, 3:31am
1
There is an incorrect test description for #RA6 (see screenshots)
welf
June 1, 2024, 3:32am
2
If you implement the feature according to the test description, test will fail:
Same problem here.
opened 11:49PM - 30 May 24 UTC
According to the [task description](https://app.codecrafters.io/courses/shell/st… ages/ra6):
> It'll also check whether the message `cd: <directory>: No such file or directory` is printed if the provided path is invalid.
But the test currently is:
```
fmt.Sprintf("match %q", fmt.Sprintf(`%s: No such file or directory\n`, directory))
```
It should be:
```
fmt.Sprintf("match %q", fmt.Sprintf(`cd: %s: No such file or directory\n`, directory)),
```
PR #16
IMO, it’s the test (not the description) that should be fixed. Zsh behaves like this on my machine:
Thanks for reporting, everyone!
Yep, this does seem like a mismatch between the description and tests. We’ve been running our tests against bash, zsh and dash - need to look into why this one succeeded against zsh (shouldn’t have?).
Will leave a note here once we’ve patched either the tests or the description!
I believe this has been fixed now, we just forgot to update the status here.