we learn everyday something with CODY!
This problem needs to be fixed!!!!!!
Now that I've noticed people were having issues with this problem (thanks it it being added to the "Magic Numbers II" group) I've fixed the test suite. Cody changed the way their test suites were read in sometime in October, 2016 judging from when things went south. Those changes messed up this problem. I manually rescored a couple of solutions to confirm that the fixes worked, and they did. The problem is now functional.
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.
What is happening here?
It says:
"Error using builtin Undefined function or variable 'solutionTest'."
Find state names that end with the letter A
707 Solvers
15294 Solvers
Create a cell array out of a struct
507 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
334 Solvers
573 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!