Closed ahaoboy closed 1 month ago
This would be very surprising. Could you confirm once more? Your're sure it's not just failing on the first and not hitting the second? Changing the name of the second makes a difference?
Sorry, I mistakenly thought that all assertions in each test function were in the same file, insta is fine, thanks for your help
What happened?
In a test function, I use assert_debug_snapshot to take snapshots of variables with the same name, but only the first value is saved, which ignores subsequent variables with the same name. In this case, maybe warn should be used to prompt the user, or is it a bug in insta?
Reproduction steps
Insta Version
latest
rustc Version
rustc 1.84.0-nightly (798fb83f7 2024-10-16)
What did you expect?
Variables with the same name should be snapshotted twice