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

bug: CompareJson function fails to detect differences in certain cases #7

Open
ayush3160 opened this issue Oct 21, 2024 · 0 comments · May be fixed by #8
Open

bug: CompareJson function fails to detect differences in certain cases #7

ayush3160 opened this issue Oct 21, 2024 · 0 comments · May be fixed by #8
Assignees

Comments

@ayush3160
Copy link
Contributor

ayush3160 commented Oct 21, 2024

The CompareJson function fails to identify differences when comparing JSON objects, especially when the top-level key has a string or integer as its value.

expectedString := "{\"url\":\"http://localhost:8082/Lhr4BWAi\"}"
actualString := "{\"url\":\"http://localhost:8382/Lhr4BWAi\"}"

This will show no diff

Another example is of this test case test

peek_12

  1. Books key is missing in the diff result for this test

  2. If the key is different then whole key is shown in Red color while only the differ part should be colored in Red or Green

@ayush3160 ayush3160 self-assigned this Oct 21, 2024
@ayush3160 ayush3160 linked a pull request Oct 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant