mirror of
https://github.com/Dhghomon/easy_rust
synced 2024-11-15 18:13:23 +00:00
chore: add missing closing double quotes
Signed-off-by: Rod Elias <rodiney@gmail.com>
This commit is contained in:
parent
6dbd58b1fe
commit
e30520b517
@ -11002,7 +11002,7 @@ test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
|
|||||||
|
|
||||||
That's not too hard.
|
That's not too hard.
|
||||||
|
|
||||||
Usually you will want to put your tests in their own module. To do this, use the same `mod` keyword and add `#[cfg(test)]` above it (remember: `cfg` means "configure). You also want to continue to write `#[test]` above each test. This is because later on when you install Rust, you can do more complicated testing. You will be able to run one test, or all of them, or run a few. Also don't forget to write `use super::*;` because the test module needs to use the functions above it. Now it will look like this:
|
Usually you will want to put your tests in their own module. To do this, use the same `mod` keyword and add `#[cfg(test)]` above it (remember: `cfg` means "configure"). You also want to continue to write `#[test]` above each test. This is because later on when you install Rust, you can do more complicated testing. You will be able to run one test, or all of them, or run a few. Also don't forget to write `use super::*;` because the test module needs to use the functions above it. Now it will look like this:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn return_two() -> i8 {
|
fn return_two() -> i8 {
|
||||||
|
Loading…
Reference in New Issue
Block a user