Unit Tests

- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
Paul Beckingham
2012-07-03 15:43:19 -04:00
parent 75822eed47
commit da575c4043
185 changed files with 1591 additions and 1591 deletions

View File

@@ -40,13 +40,13 @@ if (open my $fh, '>', 'bug.rc')
}
# Setup: Add a recurring task then remove the due date.
qx{../src/task rc:bug.rc add foo recur:yearly due:eoy};
qx{../src/task rc:bug.rc li};
qx{../src/task rc:bug.rc 2 modify due:};
qx{../src/task rc:bug.rc add foo recur:yearly due:eoy 2>&1};
qx{../src/task rc:bug.rc li 2>&1};
qx{../src/task rc:bug.rc 2 modify due: 2>&1};
# Result: Somehow the due date is incremented and wraps around to 12/31/1969,
# then keeps going back to today.
my $output = qx{../src/task rc:bug.rc li};
my $output = qx{../src/task rc:bug.rc li 2>&1};
unlike ($output, qr/1969/ms, 'Should not display 12/31/1969');
# Cleanup.