A basic implementation of FizzBuzz in Rust.
Writing the Code
Execute the tests with:
All but the first test have been ignored. After you get the first test to
pass, open the tests source file which is located in the
and remove the
#[ignore] flag from the next test and get the tests to pass
again. Each separate test is a function with
#[test] flag above it.
Continue, until you pass every test.
If you wish to run all tests without editing the tests source file, use:
To run a specific test, for example
some_test, you can use:
If the specific test is ignored use:
To learn more about Rust tests refer to the [online test documentation][rust-tests]
Make sure to read the Modules chapter if you haven't already, it will help you with organizing your files.
After you have solved the exercise, please consider using the additional utilities, described in the installation guide, to further refine your final solution.
To format your solution, inside the solution directory use
Cargo.toml file to look like the following:
The test file
Run the final test
1,200+ PEOPLE ALREADY JOINED ❤️️
Get fresh posts + news direct to your inbox.
No spam. We only send you relevant content.