| Message: 24172 |
 |
BY: Rob Morris (irongaze) DATE: 2007-06-24 05:26 SUBJECT: Diff::LCS bug - spurious remove action Hey Austin, saw a post from a while back re: 1.8.4 and LCS bugs, where you requested an example. Here's a simple example of broken behavior in Ruby v1.8.5 and LCS v1.1.2:
>> changes = Diff::LCS.diff('hello','hello')
=> [[#<Diff::LCS::Change:0x2a97f23d40 @position=5, @action="-", @element="">]]
The diff method is returning a remove action on the null at the end of the a input. Seems to happen regardless of what a and b are on the diff() call. | |