Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y1 = fifth_times_a_charm(x);
assert(~isequal(y1,x))
y2 = fifth_times_a_charm(x);
assert(~isequal(y2,x))
assert(abs(x-y2)<abs(x-y1))
y3 = fifth_times_a_charm(x);
assert(~isequal(y3,x))
assert(abs(x-y3)<abs(x-y2))
y4 = fifth_times_a_charm(x);
assert(~isequal(y4,x))
assert(abs(x-y4)<abs(x-y3))
y5 = fifth_times_a_charm(x);
assert(isequal(y5,x))
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint1 (line 2)
In solutionTest (line 3)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint1 (line 5)
In solutionTest (line 3)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint1 (line 9)
In solutionTest (line 3)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint1 (line 13)
In solutionTest (line 3)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint1 (line 17)
In solutionTest (line 3)]
|
2 | Pass |
x = -1;
y1 = fifth_times_a_charm(x);
assert(~isequal(y1,x))
y2 = fifth_times_a_charm(x);
assert(~isequal(y2,x))
assert(abs(x-y2)<abs(x-y1))
y3 = fifth_times_a_charm(x);
assert(~isequal(y3,x))
assert(abs(x-y3)<abs(x-y2))
y4 = fifth_times_a_charm(x);
assert(~isequal(y4,x))
assert(abs(x-y4)<abs(x-y3))
y5 = fifth_times_a_charm(x);
assert(isequal(y5,x))
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint2 (line 2)
In solutionTest (line 5)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint2 (line 5)
In solutionTest (line 5)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint2 (line 9)
In solutionTest (line 5)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint2 (line 13)
In solutionTest (line 5)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint2 (line 17)
In solutionTest (line 5)]
|
3 | Pass |
x = 42;
y1 = fifth_times_a_charm(x);
assert(~isequal(y1,x))
y2 = fifth_times_a_charm(x);
assert(~isequal(y2,x))
assert(abs(x-y2)<abs(x-y1))
y3 = fifth_times_a_charm(x);
assert(~isequal(y3,x))
assert(abs(x-y3)<abs(x-y2))
y4 = fifth_times_a_charm(x);
assert(~isequal(y4,x))
assert(abs(x-y4)<abs(x-y3))
y5 = fifth_times_a_charm(x);
assert(isequal(y5,x))
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint3 (line 2)
In solutionTest (line 7)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint3 (line 5)
In solutionTest (line 7)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint3 (line 9)
In solutionTest (line 7)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint3 (line 13)
In solutionTest (line 7)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint3 (line 17)
In solutionTest (line 7)]
|
4 | Pass |
x = i;
y1 = fifth_times_a_charm(x);
assert(~isequal(y1,x))
y2 = fifth_times_a_charm(x);
assert(~isequal(y2,x))
assert(abs(x-y2)<abs(x-y1))
y3 = fifth_times_a_charm(x);
assert(~isequal(y3,x))
assert(abs(x-y3)<abs(x-y2))
y4 = fifth_times_a_charm(x);
assert(~isequal(y4,x))
assert(abs(x-y4)<abs(x-y3))
y5 = fifth_times_a_charm(x);
assert(isequal(y5,x))
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint4 (line 2)
In solutionTest (line 9)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint4 (line 5)
In solutionTest (line 9)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint4 (line 9)
In solutionTest (line 9)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint4 (line 13)
In solutionTest (line 9)]
[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 fifth_times_a_charm (line 2)
In ScoringEngineTestPoint4 (line 17)
In solutionTest (line 9)]
|
7264 Solvers
Find state names that end with the letter A
551 Solvers
5735 Solvers
Determine the number of odd integers in a vector
320 Solvers
Create an n-by-n null matrix and fill with ones certain positions
140 Solvers