--- loncom/homework/templates/CustomResponse.problem 2006/07/18 17:24:39 1.1 +++ loncom/homework/templates/CustomResponse.problem 2009/07/06 17:12:47 1.3 @@ -1,9 +1,13 @@ -Accept an answer of around 90 or -90 - + + +Accept an answer of around 90 or -90 + + + # We do not want a vector -if ($submission=~/\,/) { return 'ANS_CNT_NOT_MATCH'; } +if ($submission=~/\,/) { return 'EXTRA_ANSWER'; } # No units needed if ($submission=~/^\d+\s+\w+$/) { return 'UNIT_NOTNEEDED'; } # Need a numerical answer here @@ -14,6 +18,6 @@ if ($difference < 0.001) { return 'APPRO return 'INCORRECT'; - - + +