Validator: Answer test results
This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.
Validator
Test | ? | Student response | Teacher answer | Opt | Mark | Answer note | |
---|---|---|---|---|---|---|---|
Validator | 1/0 |
0 |
validate_nofunc tions |
-1 | ATValidator_STACKERROR_SAns. | ||
TEST_FAILED | |||||||
The answer test failed to execute correctly: please alert your teacher. Division by zero. | |||||||
Validator | x |
0 |
1/0 |
-1 | ATValidator_STACKERROR_Opt. | ||
TEST_FAILED | |||||||
The answer test failed to execute correctly: please alert your teacher. Division by zero. | |||||||
Validator | x |
null |
op |
-1 | ATValidator_STACKERROR_ev. | ||
TEST_FAILED | |||||||
The validator threw an error when evaluated. This is an error in the test, please contact your teacher. | |||||||
Validator | x^2+sin(1) |
null |
[validate_nofun ctions] |
0 | ATValidator_not_fun. | ||
The validator failed to evaluate. Did you give the correct validator function name? This is an error in the test, please contact your teacher. | |||||||
Validator | f(x) |
null |
validate_nodef |
0 | ATValidator_not_fun. | ||
The validator failed to evaluate. Did you give the correct validator function name? This is an error in the test, please contact your teacher. | |||||||
Validator | x |
null |
sin |
0 | ATValidator_not_fun. | ||
The validator failed to evaluate. Did you give the correct validator function name? This is an error in the test, please contact your teacher. | |||||||
Validator | [1,2,3] |
null |
first |
0 | ATValidator_res_not_string. | ||
The result of your validator must be a string, but is not. This is an error in the test, please contact your teacher. | |||||||
Validator | x^2+sin(1) |
null |
validate_nofunc tions |
1 | |||
Validator | f(x) |
null |
validate_nofunc tions |
0 | |||
User-defined functions are not permitted, however \(f\) appears to be used as a function. | |||||||