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

Allow for tuples in expect values in a dictionary for itemgraders #282

Closed jolyonb closed 1 year ago

jolyonb commented 5 years ago

I propose the following extension to the answers block for ItemGrader:

answers=(
    {'expect': ('multiple', 'answers', 'that', 'use', 'the', 'same', 'msg', 'and', 'grade_decimal'), 'grade_decimal': value, 'msg': 'Message here'},
    ...
)

I think this can be implemented by a simple tweak to ItemGrader and nothing else.

jefrench commented 3 years ago

Great idea!

jolyonb commented 3 years ago

Hah, you're the first to express any interest in this idea at all!