-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Description
For rustlings verify, mode "compile" really only means "compile": it does not run the resulting program. This means option1.rs (which has a main() that panics) passes before I've completed the exercise. I almost missed the entire exercise, as I was working through them based on the errors from rustlings verify.
If this behavior from rustlings verify is intentional, option1.rs needs to be changed to a "test" exercise (with either main() itself as test function or a trivial test function that calls main()).
Alternatively, rustlings verify could start running the code too. Changing it to use compile_and_run works but makes the output a little noisy (did confirm I didn't miss any other tests before option1.rs), so it might need a new or refactored function that only prints the output on failure.
Alternatively alternatively, rustlings could grow an "exec" mode for exercises like this one.