Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
s1 = 'Alabama Montana Nebraska Vermont Nevada';
s2 = ' Vermont ';
assert(isequal(s2, refcn(s1)))
[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 refcn (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
|
2 | Pass |
s1 = 'Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota';
s2 = ' Arkansas Colorado Connecticut Delaware Hawaii Idaho Illinois Kansas Kentucky Maine Maryland Massachusetts Michigan ';
assert(isequal(s2, refcn(s1)))
[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 refcn (line 2)
In ScoringEngineTestPoint2 (line 5)
In solutionTest (line 5)]
|
3 | Pass |
s1 = 'New York North Carolina Michigan Arkansas Alabama North Dakota Hawaii West Virginia New Jersey';
s2 = 'New York Michigan Arkansas Hawaii New Jersey';
assert(isequal(s2, refcn(s1)))
[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 refcn (line 2)
In ScoringEngineTestPoint3 (line 5)
In solutionTest (line 7)]
|
1159 Solvers
829 Solvers
Increment a number, given its digits
562 Solvers
Create a cell array out of a struct
508 Solvers
Back to basics 25 - Valid variable names
293 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!