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

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
../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
if [ "$?" = "0" ]; then
echo "Remind: Acceptance test PASSED"