-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Feature/uint enumerable set tests #2253 #2254
Feature/uint enumerable set tests #2253 #2254
Conversation
Hm, it seems like I overlooked this when adding We could follow the approach taken in this PR, though it would increase complexity and number of tests in the suite. A way to do it might be to have a set behavior that receives three values, and then call it for each set type:
Alternatively we could just test the @frangio what do you think? |
Thanks @nventuro. I like the first proposal you mention. IMHO it is better to do that instead of just assuming the casts are correct. Even though they are basically casts, it is also quite a bunch of code that would remain uncovered (for |
I think it's desirable to test each typed variant separately. Using a behavior sounds like a good approach. |
Awesome! @julianmrodri do you think you can go ahead and implement the tests in the way described above? |
Sure! Will do. Thanks guys for your help.
…On Mon, Jun 1, 2020 at 4:18 PM Nicolás Venturo ***@***.***> wrote:
Awesome! @julianmrodri <https://github.com/julianmrodri> do you think you
can go ahead and implement the tests in the way described above?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2254 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANNVGDUQAGXAQR5XFGYTGUDRUP5IVANCNFSM4NPG6UNQ>
.
--
[image: IOVlabs - Building Value Networks] <https://www.iovlabs.org>
Julian M. Rodriguez
RIF Product Owner
iovlabs.org <https://www.iovlabs.org>
[image: RSK - Smart Contract Network] <https://www.rsk.co/> [image: RIF OS
- Taking the Internet of Value one step forward] <https://www.rifos.org/>
|
Thank you for the awesome contributions! |
7e731e0
to
9debca1
Compare
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.
This looks great @julianmrodri, thank you very much for your help!
#2253
Fixes #2253
Implemented the required tests for
UintSet
following the same approach taken forAddressSet
, and implementing a common behavior.. Regarding the Mock contract I split the implementation in two separate contracts one forAddressSet
and one forUintSet
.All linter checks and tests running correctly.
Files modified: