Unit Tests

- Fixed some tests so they no longer fail at EOM, by using "30d" to project into
  the future, instead of just "eom".
- The count.t test script has 4 tests still failing at EOM, but warnings are now
  emitted until we figure out how to improve them.
- Added a test to bug.1110.t.
This commit is contained in:
Paul Beckingham
2012-12-31 10:07:48 -05:00
parent cfac0c42e8
commit a7b20b7a4e
4 changed files with 10 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ if (open my $fh, '>', 'due.rc')
# should list only the one task.
qx{../src/task rc:due.rc add due:yesterday one 2>&1};
qx{../src/task rc:due.rc add due:tomorrow two 2>&1};
qx{../src/task rc:due.rc add due:eoy three 2>&1};
qx{../src/task rc:due.rc add due:30d three 2>&1};
my $output = qx{../src/task rc:due.rc overdue 2>&1};
like ($output, qr/one/, 'overdue: task 1 shows up');
unlike ($output, qr/two/, 'overdue: task 2 does not show up');