Cody

Solution 1900292

Submitted on 14 Aug 2019
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   Fail
str1 = 'estion-quay'; str2 = 'question'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'estion-quay' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'question'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test1 (line 3) str1_f = piglatin2english(str1);

2   Fail
str1 = 'another-ay'; str2 = 'another'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test2 (line 3) str1_f = piglatin2english(str1);

3   Fail
str1 = 'ix-nay'; str2 = 'nix'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'ix-nay' t = 'n' t1 = 'ix' t2 = 'ix-nay' p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'nix'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test3 (line 3) str1_f = piglatin2english(str1);

4   Fail
str1 = 'another-ay one-ay ites-bay e-thay ust-day'; str2 = 'another one bites the dust'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'another one ites-bay e-thay ust-day' t = 'b' t1 = 'ites' t2 = 'ites-bay' p = 'another one bites the ust-day' t = 'd' t1 = 'ust' t2 = 'ust-day' p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'another one bites the dust'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test4 (line 3) str1_f = piglatin2english(str1);

5   Fail
str1 = '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'; str2 = 'how much wood would a woodchuck chuck if a woodchuck could chuck wood'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'ow-hay uch-may ood-way ould-way a oodchuck-way uck-chay if a oodchuck-way ould-cay uck-chay ood-way' t = 'h' t1 = 'o' t2 = 'ow-ha' p = 'hoy uch-may ood-way ould-way a oodchuck-way chuck if a oodchuck-way ould-cay chuck ood-way' t = 'm' t1 = 'uch' t2 = 'uch-may' p = 'hoy much ood-way ould-way a oodchuck-way chuck if a oodchuck-way ould-cay chuck ood-way' t = 'w' t1 = 'ood' t2 = 'ood-way' p = 'hoy much wood ould-way a oodchuck-way chuck if a oodchuck-way ould-cay chuck wood' t = 'w' t1 = 'ould' t2 = 'ould-way' p = 'hoy much wood would a oodchuck-way chuck if a oodchuck-way ould-cay chuck wood' t = 'w' t1 = 'oodchuck' t2 = 'oodchuck-way' p = 'hoy much wood would a woodchuck chuck if a woodchuck ould-cay chuck wood' t = 'c' t1 = 'ould' t2 = 'ould-cay' p = 'hoy much wood would a woodchuck chuck if a woodchuck could chuck wood' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'hoy much wood would a woodchuck chuck if a woodchuck could chuck wood' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'hoy much wood would a woodchuck chuck if a woodchuck could chuck wood' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'hoy much wood would a woodchuck chuck if a woodchuck could chuck wood' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'hoy much wood would a woodchuck chuck if a woodchuck could chuck wood'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test5 (line 3) str1_f = piglatin2english(str1);

6   Fail
str1 = 'eter-pay iper-pay icked-pay a-ay eck-pay of-ay ickle-pay eppers-pay'; str2 = 'peter piper picked a peck of pickle peppers'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'eter-pay iper-pay icked-pay a eck-pay of ickle-pay eppers-pay' t = 'p' t1 = 'eter' t2 = 'eter-pay' p = 'peter iper-pay icked-pay a eck-pay of ickle-pay eppers-pay' t = 'p' t1 = 'iper' t2 = 'iper-pay' p = 'peter piper icked-pay a eck-pay of ickle-pay eppers-pay' t = 'p' t1 = 'icked' t2 = 'icked-pay' p = 'peter piper picked a eck-pay of ickle-pay eppers-pay' t = 'p' t1 = 'eck' t2 = 'eck-pay' p = 'peter piper picked a peck of ickle-pay eppers-pay' t = 'p' t1 = 'ickle' t2 = 'ickle-pay' p = 'peter piper picked a peck of pickle eppers-pay' t = 'p' t1 = 'eppers' t2 = 'eppers-pay' p = 'peter piper picked a peck of pickle peppers' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'peter piper picked a peck of pickle peppers' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'peter piper picked a peck of pickle peppers' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'peter piper picked a peck of pickle peppers' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'peter piper picked a peck of pickle peppers'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test6 (line 3) str1_f = piglatin2english(str1);

7   Fail
str1 = 'our-fay ore-scay'; str2 = 'four score'; str1_f = piglatin2english(str1); assert(strcmp(str1_f,str2))

p = 'our-fay ore-scay' t = 'f' t1 = 'our' t2 = 'our-fay' p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score' t = 1×0 empty char array t1 = 1×0 empty char array t2 = 1×0 empty char array p = 'four score'

Output argument "e" (and maybe others) not assigned during call to "piglatin2english". Error in Test7 (line 3) str1_f = piglatin2english(str1);