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
Change
Hi!
I tried adding the below test case to diffable_impls/collection.rs.
diffable_impls/collection.rs
But I'm getting Insert() + Remove() rather than Change() and the test fails.
Insert()
Remove()
Change()
If I wanted Change() to be reported here instead, what would be the easiest way for me to achieve that?
Or is this an unrealistic expectation? I'm bad at this.
#[test] fn diff_change() { use super::Diffable; let left = b"YES".to_vec(); let right = b"YAS".to_vec(); let diff = left.diff(&right); if let edit::Edit::Change(diff) = diff { use collection::Edit::*; assert_eq!( diff.into_iter().collect::<Vec<_>>(), vec![ Copy(&b'Y'), Change((&b'E', &b'A')), Copy(&b'S'), ] ); } else { unreachable!() } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
I tried adding the below test case to
diffable_impls/collection.rs
.But I'm getting
Insert()
+Remove()
rather thanChange()
and the test fails.If I wanted
Change()
to be reported here instead, what would be the easiest way for me to achieve that?Or is this an unrealistic expectation? I'm bad at this.
The text was updated successfully, but these errors were encountered: