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
In the file lib/json-compare/comparer.rb at line 60:
old_array_length = old_array.count new_array_length = new_array.count inters = [old_array.count, new_array.count].min result = get_diffs_struct (0..inters).map do |n| res = compare_elements(old_array[n], new_array[n]) result[:update][n] = res unless (res.nil? || (res.respond_to?(:empty?) && res.empty?)) end
I think the interval should be (0..(inters-1)) instead of (0..inters)
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In the file
lib/json-compare/comparer.rb
at line 60:
I think the interval should be
(0..(inters-1)) instead of (0..inters)
The text was updated successfully, but these errors were encountered: