Closed JSAbrahams closed 2 years ago
:exclamation: No coverage uploaded for pull request base (
develop@9dd3502
). Click here to learn what that means. The diff coverage isn/a
.
@@ Coverage Diff @@
## develop #281 +/- ##
==========================================
Coverage ? 85.43%
==========================================
Files ? 99
Lines ? 9811
Branches ? 0
==========================================
Hits ? 8382
Misses ? 1429
Partials ? 0
:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more
Well, if we're so close to 84% coverage, maybe sneak in a few extra tests here.
Re-added all ignored tests which previously failed, quite a lot of bugs and/or missing language features which had been solved in the meantime.
Summary
Generalize how one looks at a type:
__iter__
, which then returns the iterator type.__next__
, as any proper iterator class should.__next__
function.This solution means that the collection lookup generalizes to all types which define an iterator. For instance, we can now also index
String
s, which also have an iterator.Also final round of tests before the next release. Shouldn't be too much since we typically test as features are implemented, but looking at it with a fresh perspective can't hurt though.
Added Tests
definition
), which used to be accessed improperly