Cody

Problem 2395. Simple Past of Regular Verbs

Solution 515851

Submitted on 22 Oct 2014 by Debopam
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 = 'to work'; y_correct = 'worked'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = work simple_past = worked

2   Pass
%% x = 'to push'; y_correct = 'pushed'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = push simple_past = pushed

3   Pass
%% x = 'to use'; y_correct = 'used'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = use simple_past = used

4   Pass
%% x = 'to arrive'; y_correct = 'arrived'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = arrive simple_past = arrived

5   Pass
%% x = 'to stop'; y_correct = 'stopped'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = stop simple_past = stopped

6   Pass
%% x = 'to prefer'; y_correct = 'preferred'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = prefer simple_past = preferred

7   Pass
%% x = 'to discover'; y_correct = 'discovered'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = discover simple_past = discovered

8   Pass
%% x = 'to mix'; y_correct = 'mixed'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = mix simple_past = mixed

9   Pass
%% x = 'to carry'; y_correct = 'carried'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = carry simple_past = carried

10   Pass
%% x = 'to rely'; y_correct = 'relied'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = rely simple_past = relied

11   Pass
%% x = 'to dry'; y_correct = 'dried'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = dry simple_past = dried

12   Pass
%% x = 'to play'; y_correct = 'played'; assert(isequal(regverb2simplepast(x),y_correct))

simple_past = play simple_past = played