12%mp_assertscope(SNAPSHOT)
16 iftrue=(
"%mf_trimstr(/blah/,/)"=
"/blah"),
17 desc=Removes a trailing slash,
18 outds=work.test_results
22 iftrue=(
"%mf_trimstr(/blah/,h)"=
"/blah/"),
23 desc=Leaves a value whose tail does not match alone,
24 outds=work.test_results
28 iftrue=(
"%mf_trimstr(/blah/,h/)"=
"/bla"),
29 desc=Removes a two character tail,
30 outds=work.test_results
36 iftrue=(
"%mf_trimstr(ab,xyz)"=
"ab"),
37 desc=Returns a value shorter than the trim
string unchanged,
38 outds=work.test_results
43 iftrue=(
"%mf_trimstr(abc,abc)"=
""),
44 desc=Removes a value that is exactly the trim
string,
45 outds=work.test_results
49 iftrue=(
"%mf_trimstr(,xyz)"=
""),
50 desc=An empty value stays empty,
51 outds=work.test_results
55 iftrue=(
"%mf_trimstr(aaaXYZ,XYZ)"=
"aaa"),
56 desc=Removes a multi character tail,
57 outds=work.test_results
61 iftrue=(
"%mf_trimstr(x,x)"=
""),
62 desc=A single character matching the trim
string is removed,
63 outds=work.test_results
66%mp_assertscope(COMPARE)