Add test for %:

This commit is contained in:
Dianne Skoll
2025-08-15 14:35:31 -04:00
parent b1b80316ab
commit cd2dc3bea3
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -778,6 +778,13 @@ echo "Testing proper redirection of RUN stdout in JSON mode... here's stdout" >>
echo "... and here is stderr" >> ../tests/test.out 2>&1 echo "... and here is stderr" >> ../tests/test.out 2>&1
../src/remind --json ../tests/json-redirect.rem 1 Jan 2025 > /dev/null 2>> ../tests/test.out ../src/remind --json ../tests/json-redirect.rem 1 Jan 2025 > /dev/null 2>> ../tests/test.out
# Test %: substitution sequence
../src/remind -p - 2025-08-13 <<'EOF' >> ../tests/test.out 2>&1
REM TODO 2025-08-13 MSG Task1%:
REM TODO 2025-08-13 COMPLETE-THROUGH 2025-08-12 MSG Task2%:
REM TODO 2025-08-13 COMPLETE-THROUGH 2025-08-13 MSG Task3%:
EOF
cmp -s ../tests/test.out ../tests/test.cmp cmp -s ../tests/test.out ../tests/test.cmp
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo "Remind: Acceptance test PASSED" echo "Remind: Acceptance test PASSED"
+12
View File
@@ -25050,6 +25050,7 @@ TRANSLATE "`%s' re-SET without being used (previous SET: %s:%d)" ""
TRANSLATE "are" "" TRANSLATE "are" ""
TRANSLATE "defined at" "" TRANSLATE "defined at" ""
TRANSLATE "did you mean" "" TRANSLATE "did you mean" ""
TRANSLATE "done" ""
TRANSLATE "here" "" TRANSLATE "here" ""
TRANSLATE "psmoon() is deprecated; use SPECIAL MOON instead." "" TRANSLATE "psmoon() is deprecated; use SPECIAL MOON instead." ""
TRANSLATE "psshade() is deprecated; use SPECIAL SHADE instead." "" TRANSLATE "psshade() is deprecated; use SPECIAL SHADE instead." ""
@@ -39622,3 +39623,14 @@ Testing proper redirection of RUN stdout in JSON mode... here's stdout
] ]
... and here is stderr ... and here is stderr
This is executed by the shell. This is executed by the shell.
# translations
{"LANGID":"en"}
# rem2ps begin
August 2025 31 5 0
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
July 31
September 30
2025/08/13 * * * * Task1
2025/08/13 * * * * Task2
2025/08/13 * * * * Task3 (done)
# rem2ps end