mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-15 19:55:34 -04:00
Added filename to top of .rs files
This commit is contained in:
parent
c4b3252845
commit
7d7a48b17d
48 changed files with 50 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
// tests1.rs
|
||||
// Tests are important to ensure that your code does what you think it should do.
|
||||
// Tests can be run on this file with the following command:
|
||||
// rustc --test tests1.rs
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// tests2.rs
|
||||
// This test has a problem with it -- make the test compile! Make the test
|
||||
// pass! Make the test fail! Scroll down for hints :)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// tests3.rs
|
||||
// This test isn't testing our function -- make it do that in such a way that
|
||||
// the test passes. Then write a second test that tests that we get the result
|
||||
// we expect to get when we call `is_even(5)`. Scroll down for hints!
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// tests4.rs
|
||||
// This test isn't testing our function -- make it do that in such a way that
|
||||
// the test passes. Then write a second test that tests that we get the result
|
||||
// we expect to get when we call `times_two` with a negative number.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue