diff options
| author | Trotter Cashion <cashion@gmail.com> | 2016-10-23 15:14:53 -0700 |
|---|---|---|
| committer | Trotter Cashion <cashion@gmail.com> | 2016-11-08 07:04:12 -0800 |
| commit | b1d0c5bb38913658f26254a5e9aff3550b8cf607 (patch) | |
| tree | 95e7f358ea96b8a861c78ce15a62a37bc89485ed /src/test/incremental/thinlto | |
| parent | 38a959a543dfc70a67e64f7d369ed6c9e12fc806 (diff) | |
| download | rust-b1d0c5bb38913658f26254a5e9aff3550b8cf607.tar.gz rust-b1d0c5bb38913658f26254a5e9aff3550b8cf607.zip | |
Update testing.md to reflect changes to cargo new
`cargo new` now creates a `src/lib.rs` with a `tests` module by default. I've updated the earlier examples in this doc to reflect this. However, I don't know how we want to approach the "introduction" to idiomatic testing that follows in "the tests module" section. I _think_ it should be broken apart, with the module concept being introduced early on, and the `super` concept being addressed when we hit the `add_two` example. I'd like to get agreement on that being the right approach before I do it though.
I _also_ removed the `#fn main() {}` hidden at the beginning of each example, as these cause Rust Playground to not treat the file as a set of tests that it can run. Removing it _should_ cause Rust Playground to display a "Test >" button in the top left when a user runs the code, which will allow them to see the test runner output.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
