Closed jolyonb closed 5 years ago
Merging #261 into master will increase coverage by
1.43%
. The diff coverage is97.56%
.
@@ Coverage Diff @@
## master #261 +/- ##
==========================================
+ Coverage 98.52% 99.96% +1.43%
==========================================
Files 29 29
Lines 2508 2517 +9
==========================================
+ Hits 2471 2516 +45
+ Misses 37 1 -36
This is now working! It was much easier, cleaner and quicker than I had anticipated!
I still need to write tests...
@ChristopherChudzicki Ready for review. I think you'll like it. For a major overhaul, this is a whole lot simpler than you may expect! (pun intended ;-)
@ChristopherChudzicki Just wondering if you plan to review this, or should I leave it sit a few days and then self-review?
I’ll try to review it tonight… I started reading through it this morning… But didn’t finish. If I don’t review it by tomorrow morning then I probably won’t for at least a week, so happy to have you do it.
But, I am reasonably confident I can do it tonight
Ok, I fixed those two little things. I basically did your suggestion for checking whether or not to add the message, but I had to complicate it somewhat in order to account for nested SingleListGraders... Basically, I added an extra field to the return dictionary that recorded the required information, and then stripped it out in the call method.
Merging #261 into master will increase coverage by
1.47%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #261 +/- ##
========================================
+ Coverage 98.52% 100% +1.47%
========================================
Files 29 29
Lines 2508 2655 +147
========================================
+ Hits 2471 2655 +184
+ Misses 37 0 -37
Merging #261 into master will increase coverage by
1.47%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #261 +/- ##
========================================
+ Coverage 98.52% 100% +1.47%
========================================
Files 29 29
Lines 2508 2655 +147
========================================
+ Hits 2471 2655 +184
+ Misses 37 0 -37
@ChristopherChudzicki Updated and ready for final review.
Nice resolution to the message issue!
This PR updates the answer validation for SingleListGrader. It actually leverages
ItemGrader
in a neat way that makes everything nicer, in my opinion. Addresses #247 for SingleListGrader (but not ListGrader, which is a whole 'nother beast!).The code:
currently produces:
whereas in the overhaul, it produces:
Hence, we gain the ability to apply grade_decimals and messages at higher levels, so something like
is accepted.