Hello. This is not a big deal but I was wondering whether anyone managed to get past the
"Your answer should be a decimal number, but it is not!" problem. The comment arises because I put ta1*2 which ends up not being a decimal number. And at one point I had solved this problem by putting dispdp or something like that in the test inputs... but I must have imagined it, because now it just breaks the test.
Any advice on how to get this test to work properly? I could (and have) put 0.00 as an incorrect answer, but it would be more satisfying to have this work.
Thank you!
Lillian,
There is some advice on test case construction, including using ev(.... , simp), in the docs: https://docs.stack-assessment.org/en/Authoring/Testing/
Chris
There is some advice on test case construction, including using ev(.... , simp), in the docs: https://docs.stack-assessment.org/en/Authoring/Testing/
Chris
Found it, thank you.
"Test cases are always written assuming simp:false regardless of the option set elsewhere. If you want to construct a simplified test case then wrap this in ev(... , simp) to simplify the expression generating the test case. This behaviour is required to enable construction of unsimplified test cases."
Makes sense. I also see the advice of creating wrong answers in the question itself. That might make testing FT cases easier I think, trying to learn how to do that.
"Test cases are always written assuming simp:false regardless of the option set elsewhere. If you want to construct a simplified test case then wrap this in ev(... , simp) to simplify the expression generating the test case. This behaviour is required to enable construction of unsimplified test cases."
Makes sense. I also see the advice of creating wrong answers in the question itself. That might make testing FT cases easier I think, trying to learn how to do that.