We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We now have assert_debug_snapshot which uses "{:#?}" a.k.a. pretty print.
assert_debug_snapshot
"{:#?}"
I wonder if it's reasonable to add a assert_compact_debug_snapshot use "{:?}" so that we may save some lines.
assert_compact_debug_snapshot
"{:?}"
The text was updated successfully, but these errors were encountered:
Currently, it's a bit wordy:
assert_debug_snapshot!( candidates, @r###" [ 0, ] "### );
using ron reduce two spaces in the indent, but doesn't help too much.
assert_ron_snapshot!( candidates, @r###" [ 0, ] "### );
Of course, I can use assert_snapshot!(format!("{candidates:?}"), @r"[0]");, but it seems insta try to provide convenient serializer out of the box.
assert_snapshot!(format!("{candidates:?}"), @r"[0]");
Sorry, something went wrong.
Waiting on review in #514 !
No branches or pull requests
We now have
assert_debug_snapshot
which uses"{:#?}"
a.k.a. pretty print.I wonder if it's reasonable to add a
assert_compact_debug_snapshot
use"{:?}"
so that we may save some lines.The text was updated successfully, but these errors were encountered: