Cody

# Problem 44295. More Simple String Concatenation

Solution 1697953

Submitted on 21 Dec 2018
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 = 'apple'; str2 = 'pear'; concat_str = 'elppa pear'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test1 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

2   Fail
str1 = 'one'; str2 = 'two'; concat_str = 'eno two'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test2 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

3   Fail
str1 = 'one two'; str2 = 'three four'; concat_str = 'owt eno three four'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test3 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

4   Fail
str1 = 'hello'; str2 = 'there'; concat_str = 'olleh there'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test4 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

5   Fail
str1 = 'This is half a sentence;'; str2 = 'here is the other half.'; concat_str = ';ecnetnes a flah si sihT here is the other half.'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test5 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

6   Fail
str1 = 'left'; str2 = 'right'; concat_str = 'tfel right'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test6 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

7   Fail
str1 = 'right'; str2 = 'left'; concat_str = 'thgir left'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test7 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

8   Fail
str1 = ' leading space'; str2 = 'trailing space '; concat_str = 'ecaps gnidael trailing space '; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test8 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))

9   Fail
str1 = '123'; str2 = '456'; concat_str = '321 456'; assert(isequal(your_fcn_name(str1, str2),concat_str))

Undefined function 'fliprlr' for input arguments of type 'char'. Error in your_fcn_name (line 2) [fliprlr(s) ' ' t] Error in Test9 (line 4) assert(isequal(your_fcn_name(str1, str2),concat_str))