From: Eric Hodel Date: 2006-01-12T10:03:49+09:00 Subject: Re: unit tests and string comparisons On Jan 11, 2006, at 4:57 PM, Joe Van Dyk wrote: > I'm testing the equality of two rather large strings. They look the > same to me, but doing > > assert_equal "big ass long string", "big ass long string" > > says that they're different. And they look very similar to me. I > know that they're different though, as doing "big ass long string".sum > gives a different checksum than the other one. > > Any ideas on how I can easily view the differences between two long > strings? Use unit_diff from ZenTest. -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com