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'."
Make the vector [1 2 3 4 5 6 7 8 9 10]
Project Euler: Problem 8, Find largest product in a large string of numbers
Sum the entries of each column of a matrix which satisfy a logical condition.
Generate N equally spaced intervals between -L and L
Reverse the elements of an array
Generate a Parasitic Number
Rewrite setdiff to account for non-unique values
Kurchan 4x4 - Optimal score
Rolling maximums above a threshold
High Precision Square Root (Inspired by Project Euler 80)
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