Cody

# Problem 44622. Check for keywords

Solution 3780823

Submitted on 22 Nov 2020
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
x = 'function'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

2   Fail
x = 'persistent'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

3   Fail
x = 'classdef'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

4   Fail
x = 'variable'; y_correct = false; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

5   Fail
x = 'dateadd'; y_correct = false; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

6   Fail
x = 'spmd'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

7   Fail
x = 'partition'; y_correct = false; assert(isequal(check_keyword(x),y_correct))

Assertion failed.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!