rustlings
rustlings copied to clipboard
Check not only code output but also code itself
trafficstars
Examaple if1 requires you to use IF instead of standard function, but it is not enforced
I also noticed similar cases in variables, where I was able to add mut instead of creating new binding that is shadowing old binding. Etc.
It also don't assert output
Closing in favor of https://github.com/rust-lang/rustlings/issues/293
I don't think that we should try to enforce solving the exercises more than we currently do.
- Parsing and checking code can quickly get very complicated. We leave this task to the compiler and the linter Clippy.
- If the user "cheats" or just takes a shortcut, no harm is done since this is not an exam :P
- It would be much better to provide a solution so that the user sees how the exercise was actually meant to be solved.