Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
dx=[0,1,0,-1];
dy=[1,0,1,0];
x=1;
y=5;
assert(isequal(flyaway(dx,dy,x,y),true))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In flyaway (line 2)
In ScoringEngineTestPoint1 (line 5)
In solutionTest (line 3)]
|
2 | Pass |
dx=[0,1,0,-1];
dy=[1,0,1,0];
x=2;
y=5;
assert(isequal(flyaway(dx,dy,x,y),false))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In flyaway (line 2)
In ScoringEngineTestPoint2 (line 5)
In solutionTest (line 5)]
|
3 | Pass |
dx=[-2, 3, 1, 4, 0, 0, 1, 4];
dy=[-7,-5, 4, 6,-1, 4, 7, 1];
x=865;
y=711;
assert(isequal(flyaway(dx,dy,x,y),false))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In flyaway (line 2)
In ScoringEngineTestPoint3 (line 5)
In solutionTest (line 7)]
|
4 | Pass |
dx=[-2, 3, 1, 4, 0, 0, 1, 4];
dy=[-7,-5, 4, 6,-1, 4, 7, 1];
x=865;
y=710;
assert(isequal(flyaway(dx,dy,x,y),true))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In flyaway (line 2)
In ScoringEngineTestPoint4 (line 5)
In solutionTest (line 9)]
|
5 | Pass |
dx=[-1,-1,-1, 2,-1, 6];
dy=[-1,-2, 2, 1, 1,-6];
x=53;
y=-71;
assert(isequal(flyaway(dx,dy,x,y),true))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In flyaway (line 2)
In ScoringEngineTestPoint5 (line 5)
In solutionTest (line 11)]
|
6 | Pass |
dx=[-1,-1,-1, 2,-1, 6];
dy=[-1,-2, 2, 1, 1,-6];
x=50;
y=-75;
assert(isequal(flyaway(dx,dy,x,y),false))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In flyaway (line 2)
In ScoringEngineTestPoint6 (line 5)
In solutionTest (line 13)]
|
random picture with random colours
138 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
495 Solvers
Wind outward from the center ...
67 Solvers
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!