Skip to content
New issue

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

There are duplicate keys in diff when comparing a large hash #99

Open
khiav223577 opened this issue Oct 8, 2020 · 1 comment
Open
Labels

Comments

@khiav223577
Copy link

See the screenshot:
image

This is the test cases:

it do
  expect_response_header(:ok)
  expect(response_data).to eq(
    "items_count" => 2,
    "max_page"    => 2,
    "elements"    => [
      {
        "id"                        => target_specimens[0].id,
        "kind"                      => "lithium_heparin",
        "number"                    => "107-HEP-0001",
        "patient_medical_record_no" => "MED_0077",
        "patient_name"              => nil,
        "patient_id_card"           => nil,
        "patient_gender"            => nil,
        "patient_birthday"          => "1991-03-12",
        "patient_hospital"          => nil,
        "family_hospital"           => nil,
        "family_medical_record_no"  => nil,
        "family_title"              => nil,
        "inspect_date"              => nil,
        "submit_date"               => nil,
        "receive_date"              => "2017-06-01",
        "inspection_unit"           => nil,
        "inspection_doctor"         => nil,
        "description"               => nil,
        "disease"                   => nil,
        "REQ"                       => nil,
        "comments"                  => nil,
        "discarded_at"              => "2018-07-03 08:12:54"
      }
    ]
  )
end

Environment

super_diff (0.5.2)
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
Rails 5.2.4
@mcmire
Copy link
Collaborator

mcmire commented Oct 12, 2020

Thanks for the report, that's weird for sure. I'll check it out shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants