This is kind of a contrived example that no one probably would do in "real life coding", but I am trying to make a test for the default rust code created by cargo new
which is this:
fn main() {
println!("Hello, world!");
}
Is there any way assert that "Hello, world!" is written to the console, possibly by mocking the println!
macro?