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
|
@ -43,16 +43,16 @@ if (open my $fh, '>', 'bug.rc')
|
|||
# Bug 804: URL link and break line
|
||||
|
||||
# Setup: Add a tasks, annotate with long word.
|
||||
qx{../src/task rc:bug.rc add One};
|
||||
qx{../src/task rc:bug.rc 1 annotate abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz};
|
||||
qx{../src/task rc:bug.rc add One 2>&1};
|
||||
qx{../src/task rc:bug.rc 1 annotate abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz 2>&1};
|
||||
|
||||
# List with rc.hyphenate=on.
|
||||
my $output = qx{../src/task rc:bug.rc rc.defaultwidth:40 rc.hyphenate:on ls};
|
||||
my $output = qx{../src/task rc:bug.rc rc.defaultwidth:40 rc.hyphenate:on ls 2>&1};
|
||||
like ($output, qr/vwx-\n/ms, 'hyphenated 1');
|
||||
like ($output, qr/tuv-\n/ms, 'hyphenated 2');
|
||||
|
||||
# List with rc.hyphenate=off.
|
||||
$output = qx{../src/task rc:bug.rc rc.defaultwidth:40 rc.hyphenate:off ls};
|
||||
$output = qx{../src/task rc:bug.rc rc.defaultwidth:40 rc.hyphenate:off ls 2>&1};
|
||||
like ($output, qr/vwxy\n/ms, 'not hyphenated 1');
|
||||
like ($output, qr/uvwx\n/ms, 'not hyphenated 2');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue