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
I added this recently for the new plugin test crate. I wanted to be able to demonstrate a nice diff for people who are trying to debug their broken plugin examples. The values can sometimes be rather nested and the differences hard to spot.
If there's another crate that works fine for this purpose, I think that's alright - I just picked one that seemed simple and fit the license requirement.
We have pretty_assert::assert_eq! already, but there's no way to use that to generate differences that don't panic. I wanted something like that but so that I could report errors for each example.
Activity
devyn commentedon Mar 25, 2024
Hey @kubouch,
I added this recently for the new plugin test crate. I wanted to be able to demonstrate a nice diff for people who are trying to debug their broken plugin examples. The values can sometimes be rather nested and the differences hard to spot.
If there's another crate that works fine for this purpose, I think that's alright - I just picked one that seemed simple and fit the license requirement.
We have
pretty_assert::assert_eq!already, but there's no way to use that to generate differences that don't panic. I wanted something like that but so that I could report errors for each example.Fix nushell#12280: replace `difference` crate with `similar`
Fix #12280: replace `difference` crate with `similar` (#12282)