Exploits somewhat limited number of tests within Test Suite. Please add additional tests. You may also consider including some random elements in the input vectors. E.g. Points = [0, rand/2] instead of (or as well as) the existing Points = [0, 0.5] in the first test. It won't necessarily 'prevent' all exploits, but it will make them much less attractive.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
circle = [0, 0, 1]; Points = [0, 0.5]
y_correct = 1;
assert(isequal(your_fcn_name(Points,circle),y_correct))
Points =
0 0.5000
|
2 | Pass |
circle = [0, 0, 1]; Points = [0, 2]
y_correct = 0;
assert(isequal(your_fcn_name(Points,circle),y_correct))
Points =
0 2
|
3 | Pass |
circle = [1, 1, 1]; Points = [0, 1; 0, 0]
y_correct = [1; 0];
assert(isequal(your_fcn_name(Points,circle),y_correct))
Points =
0 1
0 0
|
Remove the small words from a list of words.
474 Solvers
Get the area codes from a list of phone numbers
417 Solvers
244 Solvers
1242 Solvers
Check that number is whole number
274 Solvers