Sha256: 74d90dbe4df1a38bcdb2026ab23c207d8e6fa20ef99cb871d769fd0d033a10c5

Contents?: true

Size: 1.32 KB

Versions: 124

Compression:

Stored size: 1.32 KB

Contents

## Writing the Code

Write your code in `src/lib.rs`. Some exercises come with a stub file in `src/lib.rs` that will show you the signatures of the code you'll need to write. If the exercise does not come with a `src/lib.rs` file, create one.

The directory must be named `src` and the file must be named `lib.rs` otherwise your code will not compile. For more details, check out the rustlang book [chapter on modules](https://doc.rust-lang.org/book/second-edition/ch07-00-modules.html)

### Running Tests

To run the tests, all you need to do is run the following command:

```bash
$ cargo test
```

Only the first test is enabled by default.  After you are ready to pass the next test, remove the ignore flag from the next test (`#[ignore]`).  You can also remove the flag from all the tests at once if you prefer.

You should try to write as little code possible to get the tests to pass.  Let the test failures guide you to what should be written next.

Because Rust checks all code at compile time you may find that your tests won't compile until you write the required code. Even `ignore`d tests are checked at compile time. You can [comment out](https://doc.rust-lang.org/book/second-edition/ch03-04-comments.html) tests that won't compile by starting each line with a `//`. Then, when you're ready to work on that test, you can un-comment it.

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/rust/docs/TESTS.md
trackler-2.2.1.179 tracks/rust/docs/TESTS.md
trackler-2.2.1.178 tracks/rust/docs/TESTS.md
trackler-2.2.1.177 tracks/rust/docs/TESTS.md
trackler-2.2.1.176 tracks/rust/docs/TESTS.md
trackler-2.2.1.175 tracks/rust/docs/TESTS.md
trackler-2.2.1.174 tracks/rust/docs/TESTS.md
trackler-2.2.1.173 tracks/rust/docs/TESTS.md
trackler-2.2.1.172 tracks/rust/docs/TESTS.md
trackler-2.2.1.171 tracks/rust/docs/TESTS.md
trackler-2.2.1.170 tracks/rust/docs/TESTS.md
trackler-2.2.1.169 tracks/rust/docs/TESTS.md
trackler-2.2.1.167 tracks/rust/docs/TESTS.md
trackler-2.2.1.166 tracks/rust/docs/TESTS.md
trackler-2.2.1.165 tracks/rust/docs/TESTS.md
trackler-2.2.1.164 tracks/rust/docs/TESTS.md
trackler-2.2.1.163 tracks/rust/docs/TESTS.md
trackler-2.2.1.162 tracks/rust/docs/TESTS.md
trackler-2.2.1.161 tracks/rust/docs/TESTS.md
trackler-2.2.1.160 tracks/rust/docs/TESTS.md