This solution is outdated. To rescore this solution, sign in.
-
2 Comments
I think this problem is broken, it keeps saying the 'solutionTest' thing, and when you make it global, of course you cannot get a correct value.
This is a combination of a known issue and a change in a way submissions are handled now. 1st, if you compare the test suite before, and after submission, you will notice first test disappeared. This happens when first test doesn't begin with section separator (on problem creation/editon page). It disappears, but the code is still executed. This leads us to 2nd. Submissions, from the test suite perspective, were stored in current directory. Now it's a subdirectory "submission". First test doesn't "Clean user's function from some known jailbreaking mechanisms" as intended. Moreover, it deletes "solutionTest.m" which seems to be necessary to perform tests. Btw. in this specific submission there is different error not because it was made global, but "global varname=something" is a syntax error, which is checked first and the test suite is not executed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!