mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit Tests
- Removed obsolete references to 'synch.key'.
This commit is contained in:
parent
6514bdfc4d
commit
744f0f55ac
8 changed files with 10 additions and 14 deletions
|
@ -69,12 +69,11 @@ $output = qx{../src/task rc:$rc bar rc.report.bar.sort=foo+ 2>&1};
|
|||
like ($output, qr/1.+2.+3.+4/ms, "$ut: Default ascending sort correct");
|
||||
|
||||
## Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key), $rc;
|
||||
unlink qw(pending.data completed.data undo.data backlog.data), $rc;
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r $rc, "$ut: Cleanup");
|
||||
|
||||
exit 0;
|
||||
|
|
|
@ -52,12 +52,11 @@ $output = qx{../src/task all status:completed rc:bug.rc 2>&1};
|
|||
like ($output, qr/ToBeCompleted/, 'status:completed returns completed tasks');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key bug.rc);
|
||||
unlink qw(pending.data completed.data undo.data backlog.data bug.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r 'bug.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
|
|
@ -54,12 +54,11 @@ unlike ($output, qr/ \033\[32m .* one .* \033\[0m /x, 'No color.uda');
|
|||
like ($output, qr/ \033\[31m .* two .* \033\[0m /x, 'Found color.uda');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key color.rc);
|
||||
unlink qw(pending.data completed.data undo.data backlog.data color.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r 'color.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
|
|
@ -55,12 +55,11 @@ unlike ($output, qr/uuid/, 'columns - did not find \'escr\' in uuid');
|
|||
unlike ($output, qr/project/, 'columns - did not find \'escr\' in project');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key bug.rc);
|
||||
unlink qw(pending.data completed.data undo.data backlog.data bug.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r 'bug.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
|
|
@ -59,12 +59,11 @@ $output = qx{../src/task test rc.print.empty.columns:yes rc:bug.rc 2>&1};
|
|||
like ($output, qr/Project/, 'non-empty \'project\' column is printed if rc.print.empty.columns:yes');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key bug.rc);
|
||||
unlink qw(pending.data completed.data undo.data backlog.data bug.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r 'bug.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
|
|
@ -51,12 +51,11 @@ my $output = qx{../src/task rc:bug.rc show report.next.columns 2>&1};
|
|||
unlike ($output, qr/-/, 'split on comma for comma-separated lists');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key bug.rc);
|
||||
unlink qw(pending.data completed.data undo.data backlog.data bug.rc);
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r 'bug.rc', 'Cleanup');
|
||||
|
||||
exit 0;
|
||||
|
|
|
@ -57,12 +57,11 @@ my $output = qx{../src/task rc:$rc ls 2>&1};
|
|||
like ($output, qr/sample/ms, "$ut: sample task found");
|
||||
|
||||
## Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data synch.key), $rc;
|
||||
unlink qw(pending.data completed.data undo.data backlog.data), $rc;
|
||||
ok (! -r 'pending.data' &&
|
||||
! -r 'completed.data' &&
|
||||
! -r 'undo.data' &&
|
||||
! -r 'backlog.data' &&
|
||||
! -r 'synch.key' &&
|
||||
! -r $rc, "$ut: Cleanup");
|
||||
|
||||
exit 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue