Unit Tests
- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user