wasn't a typo

Jörg Thalheim
2013-05-10 23:06:32 -07:00
parent d9f4e397b9
commit c580f64997
+1 -1
@@ -9,7 +9,7 @@ fn return_none_if_empty() {
}
```
A test function's signature must have no arguments and no return value. To run the tests in a create, it must be compiled with the '--test' flag: `rustc myprogram.rs --test -o myprogram-tests`. Running the resulting executable will run all the tests in the crate. A test is considered successful if its function returns; if the task running the test fails, through a call to `fail!`, a failed `check` or `assert`, or some other means, then the test fails.
A test function's signature must have no arguments and no return value. To run the tests in a crate, it must be compiled with the '--test' flag: `rustc myprogram.rs --test -o myprogram-tests`. Running the resulting executable will run all the tests in the crate. A test is considered successful if its function returns; if the task running the test fails, through a call to `fail!`, a failed `check` or `assert`, or some other means, then the test fails.
When compiling a crate with the '--test' flag '--cfg test' is also implied, so that tests can be conditionally compiled.