Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
str1 = 'question';
str2 = 'estion-quay';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
2 | Pass |
str1 = 'another';
str2 = 'another-ay';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
3 | Pass |
str1 = 'nix';
str2 = 'ix-nay';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
4 | Pass |
str1 = 'another one bites the dust';
str2 = 'another-ay one-ay ites-bay e-thay ust-day';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
5 | Pass |
str1 = 'how much wood would a woodchuck chuck if a woodchuck could chuck wood';
str2 = 'ow-hay uch-may ood-way ould-way a-ay oodchuck-way uck-chay if-ay a-ay oodchuck-way ould-cay uck-chay ood-way';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
6 | Pass |
str1 = 'peter piper picked a peck of pickle peppers';
str2 = 'eter-pay iper-pay icked-pay a-ay eck-pay of-ay ickle-pay eppers-pay';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
7 | Pass |
str1 = 'four score';
str2 = 'our-fay ore-scay';
str1_f = english2piglatin(str1);
assert(strcmp(str1_f,str2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
1421 Solvers
2183 Solvers
Remove element(s) from cell array
373 Solvers
251 Solvers
Number of Even Elements in Fibonacci Sequence
665 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!