3 ms·
Rust convention is to put unit tests in the same file. I like it too :) Also, doc comments run as tests too, so https://github.com/rust-lang/threadpool/blob/ma
by steveklabnik 11y ago
Rust convention is to put unit tests in the same file. I like it too :)
Also, doc comments run as tests too, so https://github.com/rust-lang/threadpool/blob/master/src/lib.rs#L69-L84 https://github.com/rust-lang/threadpool/blob/master/src/lib.... will actually get executed as a test.