mitsuhiko / insta

A snapshot testing library for rust
https://insta.rs
Apache License 2.0
2.07k stars 93 forks source link

Fix `require_full_match` #485

Closed max-sixty closed 1 month ago

max-sixty commented 1 month ago

This fixes the issues in https://github.com/mitsuhiko/insta/issues/477, stacked on https://github.com/mitsuhiko/insta/pull/483.

It's possible I've still missed something (though the excellent repro in #477 passes). I realize that there are plenty of areas I'm still unsure about in the repo... Possibly some slower integration tests with sample projects would be worthwhile; though they don't make for the nimblest of tests...

mitsuhiko commented 1 month ago

Can you fix clippy here?

max-sixty commented 1 month ago

https://github.com/mitsuhiko/insta/pull/481 fixes clippy — can we merge that first?