From f05ef363fc0e7183fa82f525e990d960d3244928 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Mon, 13 Oct 2025 11:05:58 -0400 Subject: [PATCH] Use built-in nonconst() function instead of contortions to get a nonconst value. --- tests/test-rem | 4 ++-- tests/test.cmp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-rem b/tests/test-rem index b9f50fe6..75a52655 100644 --- a/tests/test-rem +++ b/tests/test-rem @@ -920,7 +920,7 @@ EOF $REMIND --json - 2025-10-01 <<'EOF' >> $OUT 2>&1 # Nonconst-expr in trigger -set a (today()+1)-today() +set a nonconst(1) REM 2025-10-01 MSG Nonconst NOT set [today()] REM 2025 Oct [a] MSG Nonconst IS set [today()] REM 2025 Oct [a] MSG Nonconst IS set @@ -929,7 +929,7 @@ EOF $REMIND -j - 2025-12-31 <<'EOF' >> $OUT 2>&1 # Nonconst-expr in trigger set $ParseUntriggered 1 -set a (today()+1)-today() +set a nonconst(1) REM 2025-10-01 MSG Nonconst NOT set [today()] REM 2025 Oct [a] MSG Nonconst IS set [today()] REM 2025 Oct [a] MSG Nonconst IS set diff --git a/tests/test.cmp b/tests/test.cmp index a1989b1f..c5307809 100644 --- a/tests/test.cmp +++ b/tests/test.cmp @@ -39933,7 +39933,7 @@ No reminders. ] # Nonconst-expr in trigger set $ParseUntriggered 1 -set a (today()+1)-today() +set a nonconst(1) #!P: Expired: REM 2025-10-01 MSG Nonconst NOT set [today()] #!P: Next line may have expired, but contains non-constant expression #!P: or a relative SCANFROM clause