Closed alphonse closed 4 years ago
Nice find @alphonse Just fixed this in 0285667b0664d2b19c7ac6a7a574bc7dcc8dda48 The problem was it just wasn't looping over all the assertions (calls to some expect_*
function) in a given test. The fix was something similar to what you proposed. It was also a problem in the other grading function, too: calcGradesForGradescope
The changes have been pushed to CRAN, too, so if you re-install.packages("gradeR")
, everything should be set.
Switching the order of the assertions within each
test_that()
call changes how the question is evaluated. The second assertion seems to have no effect on the output.For instance, the example code:
evaluates to "correct" for both example submissions.
Switching the order triggers an "incorrect" result for both students: