johannhof / difference.rs

Rust text diffing and assertion library
https://docs.rs/difference
MIT License
242 stars 33 forks source link

Add fast version of assert_diff when the edit difference is expected to be zero #32

Open droundy opened 6 years ago

droundy commented 6 years ago

I'd like to see a version of assert_diff (possibly the standard one) that when the edit difference is anticipated to be zero will first check if the two strings are identical, thus saving huge amounts of time and memory.