Cody

# Problem 1712. NO _________ ALLOWED....

Solution 1891425

Submitted on 4 Aug 2019
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
Sentence = 'The birds in the field are eating bird seed'; Not_allowed = 'field' output = 1; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'field' ans = 18

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test1 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

2   Fail
Sentence = 'If the sky is blue on earth, what is the sky color on mars?'; Not_allowed = 'oven' output = 0; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'oven' ans = []

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test2 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

3   Fail
Sentence = 'Oh where, oh where has my little dog gone?'; Not_allowed = 'where' output = 1; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'where' ans = 4 14

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test3 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

4   Fail
Sentence = 'Insanity: doing the same thing over and over again and expecting different results...'; Not_allowed = 'Einstein' output = 0; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'Einstein' ans = []

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test4 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

5   Fail
Sentence = 'Wheres the cream filling?'; Not_allowed = 'cream' output = 1; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'cream' ans = 12

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test5 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

6   Fail
Sentence = 'MATLAB is the coolest!'; Not_allowed = 'MATLAB' output = 1; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'MATLAB' ans = 1

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test6 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

7   Fail
Sentence = 'No no, you got it all wrong!'; Not_allowed = 'No' output = 1; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'No' ans = 1

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test7 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))

8   Fail
Sentence = 'This planet, with all its appalling immensity, is to electric currents virtually no more than a small metal ball.'; Not_allowed = 'Tesla' output = 0; assert(isequal(NotAllowed(Sentence, Not_allowed),output))

Not_allowed = 'Tesla' ans = []

Output argument "output" (and maybe others) not assigned during call to "NotAllowed". Error in Test8 (line 4) assert(isequal(NotAllowed(Sentence, Not_allowed),output))