Cody

Solution 1696657

Submitted on 19 Dec 2018 by Daniel Reed
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   Pass
x = '950 Blue Hill Ave.Dorchester, MA 2124'; y = string('950 Blue Hill Ave.Dorchester, MA 02124'); assert (all(y == myFun(x)));

b = 33 adrOut = '950 Blue Hill Ave.Dorchester, MA 02124'

2   Pass
x = '259 Allandale Rd.Jamaica Plain, MA 2467'; y = string('259 Allandale Rd.Jamaica Plain, MA 02467'); assert (all(y == myFun(x)));

b = 35 adrOut = '259 Allandale Rd.Jamaica Plain, MA 02467'

3   Pass
x = '850 Harrison Ave.Boston, MA 2118'; y = string('850 Harrison Ave.Boston, MA 02118'); assert (all(y == myFun(x)));

b = 28 adrOut = '850 Harrison Ave.Boston, MA 02118'

4   Pass
x = '23-29 Tucker St.Dorchester, MA 2124'; y = string('23-29 Tucker St.Dorchester, MA 02124'); assert (all(y == myFun(x)));

b = 31 adrOut = '23-29 Tucker St.Dorchester, MA 02124'