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

Fix JSONTop() == 1 and JSONbot() == 0 #31

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

kmichel-aiven
Copy link
Contributor

The == operator in is_top and is_bot causes type confusion when comparing JSONTop() and JSONbot() values.

Fix it by using identity test instead of equality.

@kmichel-aiven kmichel-aiven marked this pull request as ready for review July 8, 2024 13:53
Copy link
Member

@shinnar shinnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, and the tests make sense, however the test framework uses unittest.

Please update the tests (see a sibling test file for an example) and ensure that they run as part of the CI tests.

@kmichel-aiven kmichel-aiven force-pushed the kmichel-fix-top-equality branch from 2ed4ed4 to 37f4eb1 Compare July 8, 2024 14:09
The == operator in `is_top` and `is_bot` causes type confusion when
comparing `JSONTop()` and `JSONbot()` values.

Fix it by using identity test instead of equality.
@kmichel-aiven kmichel-aiven force-pushed the kmichel-fix-top-equality branch from 37f4eb1 to 5d0d311 Compare July 8, 2024 14:16
@shinnar shinnar merged commit f6dbeb7 into IBM:master Jul 8, 2024
5 of 6 checks passed
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 this pull request may close these issues.

2 participants