I've done this
- unfortunately you also need a `fn main() {}`, wnat the tests only run if you call `cargo test --examples`
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?
-
-
-
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.
End of conversation
New conversation -
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.