Add test that OMITFUNC raises nonconst_expr indicator.

This commit is contained in:
Dianne Skoll
2020-01-12 17:51:06 -05:00
parent 6297622072
commit baa8f7f3c4
2 changed files with 15 additions and 1 deletions

View File

@@ -100,7 +100,10 @@ REM 1 Jan 2012 AT 10:00 MSG 10am: Should show up
MSG [$DontTrigAts]
EOF
# An OMITFUNC should indicate nonconst_expr
../src/remind -pp - 1 jan 2012 9:00 <<'EOF' >> ../tests/test.out 2>&1
REM Mon OMITFUNC foo MSG bar
EOF
cmp -s ../tests/test.out ../tests/test.cmp
if [ "$?" = "0" ]; then
echo "Remind: Acceptance test PASSED"

View File

@@ -4945,3 +4945,14 @@ Reminders for Sunday, 1st January, 2012:
2
# rem2ps2 begin
January 2012 31 0 0
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
December 31
February 29
{"date":"2012-01-02", "wd":["Monday"], "nonconst_expr":1, "priority":5000, "body":"bar"}
{"date":"2012-01-09", "wd":["Monday"], "nonconst_expr":1, "priority":5000, "body":"bar"}
{"date":"2012-01-16", "wd":["Monday"], "nonconst_expr":1, "priority":5000, "body":"bar"}
{"date":"2012-01-23", "wd":["Monday"], "nonconst_expr":1, "priority":5000, "body":"bar"}
{"date":"2012-01-30", "wd":["Monday"], "nonconst_expr":1, "priority":5000, "body":"bar"}
# rem2ps2 end