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
|
@ -42,10 +42,10 @@ if (open my $fh, '>', 'color.rc')
|
|||
}
|
||||
|
||||
# Test the add command.
|
||||
qx{../src/task rc:color.rc add red};
|
||||
qx{../src/task rc:color.rc add nothing};
|
||||
qx{../src/task rc:color.rc 1 modify depends:2};
|
||||
my $output = qx{../src/task rc:color.rc list};
|
||||
qx{../src/task rc:color.rc add red 2>&1};
|
||||
qx{../src/task rc:color.rc add nothing 2>&1};
|
||||
qx{../src/task rc:color.rc 1 modify depends:2 2>&1};
|
||||
my $output = qx{../src/task rc:color.rc list 2>&1};
|
||||
|
||||
like ($output, qr/ (?!<\033\[\d\dm) .* nothing .* (?!>\033\[0m) /x, 'none');
|
||||
like ($output, qr/ \033\[31m .* red .* \033\[0m /x, 'color.blocked');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue