Check out example codes for "rust test std out". It will help you in understanding the concepts better.

Code Example 1

$ cargo test -- --nocapture

Learn ReactJs, React Native from akashmittal.com