2 ######################################################
4 # Test that an '%<(function)...' if-construct correctly
5 # tests whether 'str' is empty if the function returns
6 # a string, and tests 'value' if the function returns
9 ######################################################
11 # create test replgroupcomps
12 form=$MH_TEST_DIR/$$.replgroupcomps
14 X-STRING: %(num)%(lit)%<(lit FOO) found%| missing%>\n\
15 X-NUMBER: %(num)%(lit)%<(num 3) yes%| no%>\n\
16 X-NOSTRING: %(num 3)%(lit x)%<(lit) found%| missing%>\n\
17 X-NONUMBER: %(num 3)%(lit x)%<(num) yes%| no%>\n\
21 expected=$MH_TEST_DIR/$$.expected
22 actual=$MH_TEST_DIR/Mail/drafts/1
27 X-NOSTRING: 3x missing
30 > This is message number 1
33 repl -editor true -form $form -group -nocc me -whatnowproc true 1
35 diff -u $expected $actual