3 ms·
I really love that you can (have?) put tests in the same file as the threadpool implementation. I think I will start doing this myself...
by andy_ppp 11y ago
I really love that you can (have?) put tests in the same file as the threadpool implementation. I think I will start doing this myself...
- steveklabnik 11y agoRust 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.