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?
"Error using builtin Undefined function or variable 'solutionTest'."
Largest Twin Primes
03 - Matrix Variables 4
03 - Matrix Variables 6
S-T-R-E-T-C-H I-T O-U-T
Crunch that matrix!
Sums of Multiple Pairs of Triangular Numbers
"Find out the best cricket"
How many days?!?
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office