mitodl / mitx-grading-library

The MITx Grading Library, a python grading library for edX
https://edge.edx.org/courses/course-v1:MITx+grading-library+examples/
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

if matharray product is 1 item, return a number #91

Closed ChristopherChudzicki closed 6 years ago

ChristopherChudzicki commented 6 years ago

This resolves #89. In multiplication, if output array contains a single item, convert it to a number.

jolyonb commented 6 years ago

Very happy with this. Just the one comment.

jolyonb commented 6 years ago

Note merge conflicts on this now.

ChristopherChudzicki commented 6 years ago

@jolyon don't merge this yet, I want to check something

jolyonb commented 6 years ago

Ok, whenever you're ready :)

ChristopherChudzicki commented 6 years ago

Now it's ready.

jolyonb commented 6 years ago

LGTM. Thanks for catching the finicky bugs!