-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
secret-handshake, and others: use %q to make difference between [""] and [] clear #414
Comments
the posted implementation returns This can be made clear by changing
I suggest the test file be updated to use |
also consider using
(I just grepped for Anyone working on these is free to work on either just a single one of these, or all the remaining ones (just three left as of this writing) |
update test formatting, response to #414
see exercism#414, updated to make the use of strings more apparent, so [ ] will now be ["", "", "", "", ""]. All uses of strings have also been changed to use %q rather than %s to be consistent. ie. `first_test.go:20: First(1, "01234") = "". Want "0".` rather than ie. `first_test.go:20: First(1, 01234) = . Want 0.` or ie. `first_test.go:20: First(1, 01234) = "". Want "0".`
see exercism#414 replace `%v` with `%#v` to provide a clearer output in the case of a failed test. `%#v` is used rather than `%q` as suggested in exercism#414 as it provides a more accurate output, Strings[a, b, c] appears slightly confusing. strain.Strings{"apple", "zebra", "banana", "zombies", "cherimoya", "zelot"}.Keep() rather than: Strings[apple zebra banana zombies cherimoya zelot].Keep()
see exercism#414 replace `%v` with `%#v` to provide a clearer output in the case of a failed test. `%#v` is used rather than `%q` as suggested in exercism#414 as it provides a more accurate output, Strings[a, b, c] appears slightly confusing. strain.Strings{"apple", "zebra", "banana", "zombies", "cherimoya", "zelot"}.Keep() rather than: Strings[apple zebra banana zombies cherimoya zelot].Keep()
see exercism#414 Also removed unnecessary else block
see exercism#414 Also removed unnecessary else block
🎉 |
"go path secret handshake does not work properly": exercism/exercism#3239
The text was updated successfully, but these errors were encountered: