-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add Resistor Color Trio Exercise #193
Conversation
Fixed minor issue where example.jl printed the result instead of returning it
Codecov Report
@@ Coverage Diff @@
## master #193 +/- ##
=========================================
Coverage ? 96.41%
=========================================
Files ? 120
Lines ? 1199
Branches ? 0
=========================================
Hits ? 1156
Misses ? 43
Partials ? 0
Continue to review full report at Codecov.
|
Thanks for adding the exercise! I like that you commented the example solution :) I think this exercise is a really good candidate to go beyond the canonical data and use Do you want to you convert it to use Unitful and provide a Project.toml & Manifest.toml file for a reproducible environment for the student? I'll leave the decision up to you, I think the exercise is interesting as it is already, too. The repo's runtests.jl file can't really handle dependencies yet, but I can fix that afterwards as long as the tests of this PR pass locally. -- Two things about the coding style:
|
Co-Authored-By: Sascha Mann <git@mail.saschamann.eu>
Forgot to run generate_notebooks.jl causing 1/21 tests to fail. Oops!
Sure! I'd love to do that in the future and work on making the exercise more interesting and clear, but for now, I think I'll leave that for later when I have time.
Don't the Code Formatting Guidelines on the README suggest camelCase for types? Which one should I use?
Sure, I'll just do this in the next commit along with the case change I mentioned. |
Okay, then I'll merge this once the formatting/style changes have been done and you can pick it up later whenever you want.
Type names, e.g. So for example in your code: function label(colors::AbstractArray)
# Set the color-number converter list
colorKey = ["black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"]
|
Changed camelCase to snake_case for variables, and added trailing newline at the end of every file.
Thanks! @soumitradev Please leave a short comment whenever you add a new commit that addresses changes to a PR. Otherwise GitHub won't send a notification and it might go unnoticed. |
Added previously unimplemented Resistor Color Trio Exercise