Does it seem useful for a set of unit tests to be at the bottom of a file in `examples/`? Or is it too noisy?
-
-
Replying to @seanmonstar
I've done this
- unfortunately you also need a `fn main() {}`, wnat the tests only run if you call `cargo test --examples`1 reply 0 retweets 1 like
Replying to @brendanzab
Ya, I was thinking about it as a way to show how to go about testing what's in the example, not for my own verification.
5:47 PM - 19 Jul 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.