mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unit Tests
- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
parent
75822eed47
commit
da575c4043
185 changed files with 1591 additions and 1591 deletions
|
|
@ -40,10 +40,10 @@ if (open my $fh, '>', 'range.rc')
|
|||
}
|
||||
|
||||
# Add three tasks, and attempt to list the middle one within a range.
|
||||
qx{../src/task rc:range.rc add one due:8/1/2009};
|
||||
qx{../src/task rc:range.rc add two due:8/3/2009};
|
||||
qx{../src/task rc:range.rc add three due:8/5/2009};
|
||||
my $output = qx{../src/task rc:range.rc ls due.after:8/2/2009 due.before:8/4/2009};
|
||||
qx{../src/task rc:range.rc add one due:8/1/2009 2>&1};
|
||||
qx{../src/task rc:range.rc add two due:8/3/2009 2>&1};
|
||||
qx{../src/task rc:range.rc add three due:8/5/2009 2>&1};
|
||||
my $output = qx{../src/task rc:range.rc ls due.after:8/2/2009 due.before:8/4/2009 2>&1};
|
||||
unlike ($output, qr/one/, 'Missing prior to range');
|
||||
like ($output, qr/two/, 'Found within range');
|
||||
unlike ($output, qr/three/, 'Missing after range');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue