-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Introduce #[test]
before the first exercise (Fibonacci)
#2461
Comments
Students need to see both approaches. Especially in the sandbox, the running a binary crate is pretty common and useful as it shows the output. As you've observed, |
Ah, and I just remembered #1581 which would at least make this consistent. That's assigned to me but I'd be happy to reassign if you're willing to work on it! |
Dustin is right that we need the more primitive "look at the output" approach right now — simply because of how we teach primarily using the embedded Playgrounds. However, now that we have #2503 merged, which adds support for showing @mering, please let us know if you want to get involved with that. |
Using cargo's first class testing support is so much nicer than manually
cargo run
all the time during development. People should get used to writing tests instead of manually writing binaries for testing their code right from the beginning. Luckily it is introduced for the second exercise (Collatz length).The text was updated successfully, but these errors were encountered: