mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
|
@ -41,18 +41,18 @@ if (open my $fh, '>', 'bug.rc')
|
|||
# Bug 856: "task list project.none:" does not work.
|
||||
# Note: Not using "assigned" and "unassigned" because one is a subset of the
|
||||
# other.
|
||||
qx{../src/task rc:bug.rc add assigned project:X};
|
||||
qx{../src/task rc:bug.rc add floating};
|
||||
qx{../src/task rc:bug.rc add assigned project:X 2>&1};
|
||||
qx{../src/task rc:bug.rc add floating 2>&1};
|
||||
|
||||
my $output = qx{../src/task rc:bug.rc ls project:};
|
||||
my $output = qx{../src/task rc:bug.rc ls project: 2>&1};
|
||||
like ($output, qr/floating/, 'project: matches floating');
|
||||
unlike ($output, qr/assigned/, 'project: does not match assigned');
|
||||
|
||||
$output = qx{../src/task rc:bug.rc ls project:''};
|
||||
$output = qx{../src/task rc:bug.rc ls project:'' 2>&1};
|
||||
like ($output, qr/floating/, 'project:\'\' matches floating');
|
||||
unlike ($output, qr/assigned/, 'project:\'\' does not match assigned');
|
||||
|
||||
$output = qx{../src/task rc:bug.rc ls project.none:};
|
||||
$output = qx{../src/task rc:bug.rc ls project.none: 2>&1};
|
||||
like ($output, qr/floating/, 'project.none: matches floating');
|
||||
unlike ($output, qr/assigned/, 'project.none: does not match assigned');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue