mbklein / equivalent-xml

Easy equivalency tests for Nokogiri and Oga XML
MIT License
94 stars 29 forks source link

option to log out where the difference is #34

Closed Phuong5664 closed 8 years ago

Phuong5664 commented 8 years ago

Hi,

I'm new user of this gem, and also new to GitHup. This is not an issue, it's actually a request. I just recently use this gem for my work project, it's working great, I love it. It will be really helpful if the gem can show/print where the difference is? Thanks for your time reading this.

Regards, Phuong

mbklein commented 8 years ago

Hi Phuong,

The gem does yield each pair of nodes and a true/false match value during processing, but since matching is such a complex process, it's hard to know exactly what the output would look like. The best you can usually do is to supply a block and catch the first infringing node pair.

Michael

Phuong5664 commented 8 years ago

Thank you so much for getting back to me Michael. I will try what you suggested and see.

Regards, Phuong