mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Unit Tests
- Changed error wording to match the unit tests, which were correct.
This commit is contained in:
parent
eeedfc48de
commit
2708aabddf
2 changed files with 2 additions and 1 deletions
|
@ -83,6 +83,7 @@ int CmdModify::execute (std::string& output)
|
||||||
apply_defaults (*task);
|
apply_defaults (*task);
|
||||||
|
|
||||||
// Perform some logical consistency checks.
|
// Perform some logical consistency checks.
|
||||||
|
// TODO Shouldn't these tests be in Task::validate?
|
||||||
if (task->has ("recur") &&
|
if (task->has ("recur") &&
|
||||||
!task->has ("due") &&
|
!task->has ("due") &&
|
||||||
!before.has ("due"))
|
!before.has ("due"))
|
||||||
|
|
|
@ -382,7 +382,7 @@
|
||||||
#define STRING_LUA_BAD_EVENT "Unrecognized hook event '{1}'."
|
#define STRING_LUA_BAD_EVENT "Unrecognized hook event '{1}'."
|
||||||
|
|
||||||
// Permission
|
// Permission
|
||||||
#define STRING_PERM_TASK_LINE "task {1} \"{2}\""
|
#define STRING_PERM_TASK_LINE "Task {1} \"{2}\""
|
||||||
#define STRING_PERM_RECURRING "(Recurring)"
|
#define STRING_PERM_RECURRING "(Recurring)"
|
||||||
|
|
||||||
// Record
|
// Record
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue