-
Notifications
You must be signed in to change notification settings - Fork 97
builtin: Implement builtin sum #21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21 +/- ##
==========================================
+ Coverage 64.5% 64.55% +0.05%
==========================================
Files 55 55
Lines 9740 9768 +28
==========================================
+ Hits 6283 6306 +23
- Misses 3010 3013 +3
- Partials 447 449 +2
Continue to review full report at Codecov.
|
@ncw PTAL |
16446fe
to
ba56f58
Compare
@sbinet I've updated PTAL |
@ncw Can you take a look? |
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.
I think this OK apart from the tests not passing under py3test. If you rebase to master then you'll get the testing stuff in travis and you can see what I mean.
builtin/tests/builtin.py
Outdated
try: | ||
sum(['h', 'i']) | ||
except TypeError as e: | ||
if e.args[0] != "unsupported operand type(s) for +: 'int' and 'string'": |
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 fails under python3 because the error message is actually
TypeError: unsupported operand type(s) for +: 'int' and 'str'
I'll work on getting py3test into the CI
ba56f58
to
8d3d3ff
Compare
8d3d3ff
to
d5a6536
Compare
@ncw |
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.
I would probably leave the s/"string"/"str"/
change in its own commit, but ok.
LGTM.
Look great now - thanks :-) |
Implement built-in sum.