You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at 'Cannot determine reliable names for snapshot in doctests. Please use explicit names instead.'
when providing the snapshot in code directly, which shouldn't require the snapshot to be named.
Reproduction steps
Either:
/// Some doc test////// ```rust/// let some_string = "Coucou je suis un joli bug";////// insta::assert_display_snapshot!(some_string, @"Coucou je suis un joli bug");/// ```pubfnsome_function(){}
or
/// Some doc test////// ```rust/// let some_string = "Coucou je suis un joli bug";////// insta::assert_debug_snapshot!(some_string, @"Coucou je suis un joli bug");/// ```pubfnsome_function(){}
Insta Version
1.17.0
rustc Version
rustc 1.62.1 (e092d0b6b 2022-07-16)
What did you expect?
When writing an assert_display_snapshot/assert_debug_snapshot with a provided snapshot in code, the name should be optional. It shouldn't be panicking.
The text was updated successfully, but these errors were encountered:
What happened?
insta
throws the following error:when providing the snapshot in code directly, which shouldn't require the snapshot to be named.
Reproduction steps
Either:
or
Insta Version
1.17.0
rustc Version
rustc 1.62.1 (e092d0b6b 2022-07-16)
What did you expect?
When writing an
assert_display_snapshot
/assert_debug_snapshot
with a provided snapshot in code, the name should be optional. It shouldn't be panicking.The text was updated successfully, but these errors were encountered: