Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Assert! message best pratices?
Hi,
I am creating integration tests.
I realize that we can pass a message with assert! like this for example :
const MY_CUSTOM_ERROR :&str = "Error occurs when...";
assert!(false, "{}", MY_CUSTOM_ERROR);
But I wonder if you have eventually best pratices when using assert! message ?
Have a nice day !
3 posts - 2 participants
🏷️ rust_feed