Add tests for missing REM or missing MSG being diagnosed.

This commit is contained in:
Dianne Skoll
2024-08-21 12:50:51 -04:00
parent 6e64b175aa
commit 093c97ff91
3 changed files with 5 additions and 2 deletions

View File

@@ -1684,7 +1684,7 @@ static void GenerateCalEntries(int col)
/* need to destroy it here. */
default:
Wprint("Unrecognized command; interpreting as REM MSG ...");
Wprint("Unrecognized command; interpreting as REM");
CreateParser(CurLine, &p);
r=DoCalRem(&p, col);
break;

View File

@@ -356,7 +356,7 @@ static void DoReminders(void)
/* If we don't recognize the command, do a REM by default, but warn */
default:
Wprint("Unrecognized command; interpreting as REM MSG ...");
Wprint("Unrecognized command; interpreting as REM");
DestroyParser(&p);
CreateParser(CurLine, &p);
purge_handled = 1;

View File

@@ -945,6 +945,9 @@ REM Tue AT 10:00 DURATION [trigtime()] MSG blort
# Make sure shellescape does not mangle UTF-8 characters
msg [shellescape("😆")]
This should be diagnosed as implicitly being REM
REM This should be diganosed as implicitly being MSG-type
# Don't want Remind to queue reminders
EXIT