Cody

Solution 1215271

Submitted on 18 Jun 2017
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
D = [0 0 0 0 0]; T = [0 0 0 0 0]; tol = 0; TF_correct = true; assert(isequal(testtolerance(D,T,tol),TF_correct))

Error using regexp Invalid option for regexp: ${char(+tf_correct)}. Error in testtolerance (line 2) regexp 1 1 ${char(+TF_correct)} Error in TestPoint1 (line 5) assert(isequal(testtolerance(D,T,tol),TF_correct))

2   Fail
D = [0 0 0 0 -.1]; T = [0 0 0 0 0]; tol = 0.001; TF_correct = false; assert(isequal(testtolerance(D,T,tol),TF_correct))

Error using regexp Invalid option for regexp: ${char(+tf_correct)}. Error in testtolerance (line 2) regexp 1 1 ${char(+TF_correct)} Error in TestPoint2 (line 5) assert(isequal(testtolerance(D,T,tol),TF_correct))

3   Fail
D = [.1 0 0 0 0 0 -.1]; T = [0 .2 .001 0 -.1 0 0]; tol = .15; TF_correct = false; assert(isequal(testtolerance(D,T,tol),TF_correct))

Error using regexp Invalid option for regexp: ${char(+tf_correct)}. Error in testtolerance (line 2) regexp 1 1 ${char(+TF_correct)} Error in TestPoint3 (line 5) assert(isequal(testtolerance(D,T,tol),TF_correct))

4   Fail
D = [.1 0 0 0 0 0 -.1]; T = [0 .2 .001 0 -.1 0 0]; tol = .25; TF_correct = true; assert(isequal(testtolerance(D,T,tol),TF_correct))

Error using regexp Invalid option for regexp: ${char(+tf_correct)}. Error in testtolerance (line 2) regexp 1 1 ${char(+TF_correct)} Error in TestPoint4 (line 5) assert(isequal(testtolerance(D,T,tol),TF_correct))

5   Fail
D = [-.001 .2 .001 0 -.1 0 0 .1]; T = [.023 .2 .001 0 -.1 0 0 -.3]; tol = .25; TF_correct = false; assert(isequal(testtolerance(D,T,tol),TF_correct))

Error using regexp Invalid option for regexp: ${char(+tf_correct)}. Error in testtolerance (line 2) regexp 1 1 ${char(+TF_correct)} Error in TestPoint5 (line 5) assert(isequal(testtolerance(D,T,tol),TF_correct))

Suggested Problems

More from this Author4