|
|
|
|
|
by JoshTriplett
3400 days ago
|
|
I prefer to keep tests in a `mod tests { ... }` block at the end of the source file, which provides comparable benefits and separation. I also prefer to use `combobulator.rs` rather than `combobulator/mod.rs`, for multiple reasons including filename ambiguity. In this case, you'd have: src/main.rs
src/combobulator.rs
src/somethingelse.rs
|
|