mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Redirected output in unit test.
This commit is contained in:
parent
3f158bc546
commit
19b01131ce
1 changed files with 2 additions and 3 deletions
|
@ -40,8 +40,8 @@ if (open my $fh, '>', 'minus.rc')
|
||||||
|
|
||||||
# Bug 982: Missing words when adding a description with NUMBER-SOMETHING
|
# Bug 982: Missing words when adding a description with NUMBER-SOMETHING
|
||||||
|
|
||||||
qx{../src/task rc:minus.rc add 1-test 1+tag};
|
qx{../src/task rc:minus.rc add 1-test 1+tag 2>&1};
|
||||||
my $output = qx{../src/task rc:minus.rc 1 info};
|
my $output = qx{../src/task rc:minus.rc 1 info 2>&1};
|
||||||
like ($output, qr/^Description 1-test 1\+tag$/ms, 'Description contains plus and minus signs');
|
like ($output, qr/^Description 1-test 1\+tag$/ms, 'Description contains plus and minus signs');
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
|
@ -54,4 +54,3 @@ ok (! -r 'pending.data' &&
|
||||||
! -r 'minus.rc', 'Cleanup');
|
! -r 'minus.rc', 'Cleanup');
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue