mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Add tests for missing REM or missing MSG being diagnosed.
This commit is contained in:
@@ -1684,7 +1684,7 @@ static void GenerateCalEntries(int col)
|
|||||||
/* need to destroy it here. */
|
/* need to destroy it here. */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Wprint("Unrecognized command; interpreting as REM MSG ...");
|
Wprint("Unrecognized command; interpreting as REM");
|
||||||
CreateParser(CurLine, &p);
|
CreateParser(CurLine, &p);
|
||||||
r=DoCalRem(&p, col);
|
r=DoCalRem(&p, col);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ static void DoReminders(void)
|
|||||||
/* If we don't recognize the command, do a REM by default, but warn */
|
/* If we don't recognize the command, do a REM by default, but warn */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Wprint("Unrecognized command; interpreting as REM MSG ...");
|
Wprint("Unrecognized command; interpreting as REM");
|
||||||
DestroyParser(&p);
|
DestroyParser(&p);
|
||||||
CreateParser(CurLine, &p);
|
CreateParser(CurLine, &p);
|
||||||
purge_handled = 1;
|
purge_handled = 1;
|
||||||
|
|||||||
@@ -945,6 +945,9 @@ REM Tue AT 10:00 DURATION [trigtime()] MSG blort
|
|||||||
# Make sure shellescape does not mangle UTF-8 characters
|
# Make sure shellescape does not mangle UTF-8 characters
|
||||||
msg [shellescape("😆")]
|
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
|
# Don't want Remind to queue reminders
|
||||||
EXIT
|
EXIT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user