Cody

# Problem 1770. singularity 2.0 (hard)

Solution 736402

Submitted on 15 Sep 2015
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% myfunction(); [a,b]=1; % oops...; assert(isequal(a,b));

> In /users/mss.system.k142nD/myfunction.m>myfunction (line 2) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+internal/ScriptTestCaseProvider.m>evaluateTestSection (line 103) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+internal/ScriptTestCaseProvider.m>runTest (line 86) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+internal/ScriptTestCaseProvider.m>@(testCase)runTest(testCase,provider.TestCode) (line 72) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/FunctionTestCase.m>FunctionTestCase.test (line 98) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethodCore (line 1042) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethod (line 1331) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.invokeTestContentOperatorMethod_ (line 1079) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+plugins/TestRunnerPlugin.m>TestRunnerPlugin.evaluateMethod (line 630) In /users/mss.system.k142nD/+cody/CodyPlugin.p>CodyPlugin.evaluateMethod In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+plugins/TestRunnerPlugin.m>TestRunnerPlugin.invokeTestContentOperatorMethod_ (line 658) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethodOnPlugins (line 945) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethodsOnTestContent (line 983) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.runTestMethod (line 1327) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.invokeTestContentOperatorMethod_ (line 1079) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+plugins/TestRunnerPlugin.m>TestRunnerPlugin.runTestMethod (line 588) In /users/mss.system.k142nD/+cody/CodyPlugin.p>CodyPlugin.runTestMethod In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+plugins/TestRunnerPlugin.m>TestRunnerPlugin.invokeTestContentOperatorMethod_ (line 658) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethodOnPlugins (line 945) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.runTest (line 1279) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.repeatTest (line 586) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.runSharedTestCase (line 548) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.runTestClass (line 1212) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.invokeTestContentOperatorMethod_ (line 1079) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethodOnPlugins (line 945) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.runTestSuite (line 1144) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.invokeTestContentOperatorMethod_ (line 1079) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+plugins/TestRunnerPlugin.m>TestRunnerPlugin.runTestSuite (line 229) In /users/mss.system.k142nD/+cody/CodyPlugin.p>CodyPlugin.runTestSuite In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/+plugins/TestRunnerPlugin.m>TestRunnerPlugin.invokeTestContentOperatorMethod_ (line 658) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.evaluateMethodOnPlugins (line 945) In /opt/mlsedu/matlab/R2015b/toolbox/matlab/testframework/+matlab/+unittest/TestRunner.m>TestRunner.run (line 307) In /users/mss.system.k142nD/+cody/verifyCode.p>verifyCode In /users/mss.system.k142nD/+cody/verifyCode.p>verifyCode In /opt/mlsedu/matlab/R2015b/toolbox/matlab/mss/common/+mls/+internal/fevalJSON.m>fevalJSON (line 14)

Too many output arguments.