Cody

# Problem 530. convert?

Solution 1713444

Submitted on 23 Jan 2019 by Valentin Noël-Youïnou
• Size: 9
• This is the leading solution.
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
assert(isequal(convert('Billy lost 22 pounds in four weeks.'),'Billy lost 10 kgs in four weeks.'))

[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 convert (line 2) In ScoringEngineTestPoint1 (line 1) In solutionTest (line 3)]

2   Pass
assert(isequal(convert('Maria gained 10 kgs in four months.'),'Maria gained 22 pounds in four months.'))

[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 convert (line 2) In ScoringEngineTestPoint2 (line 1) In solutionTest (line 5)]

3   Pass
assert(isequal(convert('Billy lost 44 pounds in 44 weeks.'),'Billy lost 20 kgs in 44 weeks.'))

[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 convert (line 2) In ScoringEngineTestPoint3 (line 1) In solutionTest (line 7)]

4   Pass
assert(isequal(convert('Maria gained 20 kgs in 20 months.'),'Maria gained 44 pounds in 20 months.'))

[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 convert (line 2) In ScoringEngineTestPoint4 (line 1) In solutionTest (line 9)]