Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
question = 'Are you the fifth child?';
assert(isempty(I_plead_the_fifth(question)))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint1 (line 2)
In solutionTest (line 3)]
|
2 | Pass |
question = 'Were you at home on the night of 24 Oct 1974?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
[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 I_plead_the_fifth (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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
question = 'Did you go to work on 15 Oct 1955?';
assert(isempty(I_plead_the_fifth(question)))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint3 (line 2)
In solutionTest (line 7)]
|
4 | Pass |
question = 'Did you go to the bowling alley last week?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
[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 I_plead_the_fifth (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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint4 (line 3)
In solutionTest (line 9)]
|
5 | Pass |
question = 'Do you like bread?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint5 (line 2)
In solutionTest (line 11)]
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint5 (line 3)
In solutionTest (line 11)]
|
6 | Pass |
question = 'Are there five fingers on your right hand?';
assert(isempty(I_plead_the_fifth(question)))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint6 (line 2)
In solutionTest (line 13)]
|
7 | Pass |
question = 'Do you like pumpkins?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint7 (line 2)
In solutionTest (line 15)]
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint7 (line 3)
In solutionTest (line 15)]
|
8 | Pass |
question = 'Do you have fifteen siblings?';
assert(isempty(I_plead_the_fifth(question)))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint8 (line 2)
In solutionTest (line 17)]
|
9 | Pass |
question = 'Do two quarters equal fifty cents?';
assert(isempty(I_plead_the_fifth(question)))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint9 (line 2)
In solutionTest (line 19)]
|
10 | Pass |
question = 'Do you own five dogs?';
assert(isempty(I_plead_the_fifth(question)))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint10 (line 2)
In solutionTest (line 21)]
|
11 | Pass |
question = 'Is my name Harry?';
assert(strcmpi(I_plead_the_fifth(question),'yes') || ...
strcmpi(I_plead_the_fifth(question),'no'))
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint11 (line 2)
In solutionTest (line 23)]
[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 I_plead_the_fifth (line 2)
In ScoringEngineTestPoint11 (line 3)
In solutionTest (line 23)]
|
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
274 Solvers
489 Solvers
251 Solvers
1077 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!