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
|
@ -39,13 +39,13 @@ if (open my $fh, '>', 'prepend.rc')
|
|||
}
|
||||
|
||||
# Add a task, then prepend more decsription.
|
||||
qx{../src/task rc:prepend.rc add bar};
|
||||
qx{../src/task rc:prepend.rc 1 prepend foo};
|
||||
my $output = qx{../src/task rc:prepend.rc info 1};
|
||||
qx{../src/task rc:prepend.rc add bar 2>&1};
|
||||
qx{../src/task rc:prepend.rc 1 prepend foo 2>&1};
|
||||
my $output = qx{../src/task rc:prepend.rc info 1 2>&1};
|
||||
like ($output, qr/Description\s+foo\sbar\n/, 'prepend worked');
|
||||
|
||||
# Should cause an error when nothing is appended.
|
||||
$output = qx{../src/task rc:prepend.rc 1 prepend};
|
||||
$output = qx{../src/task rc:prepend.rc 1 prepend 2>&1};
|
||||
unlike ($output, qr/Prepended 0 tasks/, 'blank prepend failed');
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue