-
Notifications
You must be signed in to change notification settings - Fork 8
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
negative-positive: support typed 0 #126
negative-positive: support typed 0 #126
Conversation
I could iterate and make the commit atomic, so it won't be a block like this. I created a isZeroValue separated from isZero to avoid conflicting with code that is already using isZero or isIntNumber Tell me what you think about it @Antonboom |
Pull Request Test Coverage Report for Build 9552411040Details
💛 - Coveralls |
431703c
to
deb275d
Compare
Pull Request Test Coverage Report for Build 9552438955Details
💛 - Coveralls |
deb275d
to
9ddfe7f
Compare
I made the changes. Let me know if you are fine with them |
Pull Request Test Coverage Report for Build 9571182025Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9577950091Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ccoVeille please, be more attentive
and review PR again after my fixes 👌
Thanks for the test refactoring. Also the changes to generate and test one checker without the others 🥰
Edited: I found the reply here |
Pull Request Test Coverage Report for Build 9578196367Details
💛 - Coveralls |
@ccoVeille read the comments above 👆 |
I'm OK with the changes, you removed the uint vs negative, which is obvious For records, I found examples of code where uint is used in something that should be converted to https://github.com/search?q=language%3Ago+%22assert.Less%28t%2C+uint%22&type=code assert.Less(t, uint64(0), e.VideoMinutes) assert.Less(t, uint32(0), c.stats.Rto)
assert.Less(t, uint32(0), c.stats.Ato) assert.Less(t, uint64(0), baseLineHeap) assert.Greater(t, uint64(result.GasUsed), minGasExpected) assert.Greater(t, uint64(state.LastUpdatedEpoch), uint64(0)) These are edge cases, but they are legitimate according to me. But we could move them to a separate issue, and current PR could be merged like this. |
There is also something that is left aside assert.True(t, uint64(0) < prod["last_claim_time"].(uint64)) Some other can be found with such query But here we could say it's open for debate, should we consider suggesting:
|
9a9d3bd
to
fc46c49
Compare
Pull Request Test Coverage Report for Build 9581645924Details
💛 - Coveralls |
…stifylint into negative-positive-typed-int
this is just my mistake. |
Pull Request Test Coverage Report for Build 9593052100Details
💛 - Coveralls |
I think we are good |
Fixes #94