Problem 1162. Happy 2013...
Solution Stats
Problem Comments
-
3 Comments
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.
Solution Comments
-
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.
-
1 Comment
What is happening here?
It says:
"Error using builtin Undefined function or variable 'solutionTest'."
Problem Recent Solvers153
Suggested Problems
-
332 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1708 Solvers
-
Sum the elements in either diagonal of a square matrix
204 Solvers
-
683 Solvers
-
219 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!