Uh oh!
There was an error while loading. Please reload this page.
Adding iterator method to Dict - #59
Conversation
Codecov Report
@@ Coverage Diff @@## master #59 +/- ##
==========================================
+ Coverage 67.94% 68.38% +0.44%
==========================================
Files 59 59 Lines 10378 10435 +57 ==========================================
+ Hits 7051 7136 +85 + Misses 2828 2794 -34 - Partials 499 505 +6
Continue to review full report at Codecov.
|
sbinet
left a comment
There was a problem hiding this comment.
thanks for tackling this.
could you also add a test exercizing this new feature?
thanks!
Uh oh!
There was an error while loading. Please reload this page.
ncw
commented
May 18, 2019
According to the coverage report your test doesn't hit your added code? |
kellrott
commented
May 24, 2019
The code is covered in |
ncw
left a comment
There was a problem hiding this comment.
That is looking good! Can you just sharpen the test slightly and I'll merge - thanks :-)
| doc="check __iter__" | ||
| a = {"a":"b","c":5.5} | ||
| assert "a" in a |
There was a problem hiding this comment.
Strictly speaking this test will no longer work when we implement the __contains__ method for dict.
Do can you change it to something like
l=list(iter(a))
assert"a"inlassert"c"inlassertlen(l) ==2There was a problem hiding this comment.
This should be fixed now
ncw
commented
Jun 3, 2019
That looks great now thank you! I see you added an items method too :-) Will merge now. |
Addresses #58