Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = [5 8 10 12 8 13 14 10 10 15];
tide_correct = 1;
assert(isequal(gauge(A),tide_correct))
[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 gauge (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
|
2 | Pass |
A = [15 16 11 9 10 15 7 12 6 11 5 6];
tide_correct = 0;
assert(isequal(gauge(A),tide_correct))
[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 gauge (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
A = [9 15 3 9 5 18 4 17 18 19 8 13 12 21 17 24];
tide_correct = 1;
assert(isequal(gauge(A),tide_correct))
[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 gauge (line 2)
In ScoringEngineTestPoint3 (line 3)
In solutionTest (line 7)]
|
4 | Pass |
A = [22 12 22 12 9 14 17 16 15 8 13 6 10 7 13 3];
tide_correct = 0;
assert(isequal(gauge(A),tide_correct))
[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 gauge (line 2)
In ScoringEngineTestPoint4 (line 3)
In solutionTest (line 9)]
|
27981 Solvers
Number of 1s in the Binary Representation of a Number
356 Solvers
Check if number exists in vector
4465 Solvers
253 Solvers
Determine the number of odd integers in a vector
435 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!