diff --git a/src/tests/abbreviation.t b/src/tests/abbreviation.t index 35ac6a6e8..e08103103 100755 --- a/src/tests/abbreviation.t +++ b/src/tests/abbreviation.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 23; +use Test::More tests => 24; # Create the rc file. if (open my $fh, '>', 'abbrev.rc') @@ -92,6 +92,9 @@ like ($output, qr/GNU General Public License/, 'v'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/add.t b/src/tests/add.t index 00541d9f1..8cb586ba8 100755 --- a/src/tests/add.t +++ b/src/tests/add.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 13; +use Test::More tests => 14; # Create the rc file. if (open my $fh, '>', 'add.rc') @@ -65,6 +65,9 @@ like ($output, qr/Status\s+Deleted\n/, 'add Deleted'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/annotate.t b/src/tests/annotate.t index 886d275db..fae9bae15 100755 --- a/src/tests/annotate.t +++ b/src/tests/annotate.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 50; +use Test::More tests => 51; # Create the rc file. if (open my $fh, '>', 'annotate.rc') @@ -148,13 +148,17 @@ like ($output, qr/4 tasks/, 'count'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); unlink 'annotate.rc'; ok (!-r 'annotate.rc', 'Removed annotate.rc'); + unlink 'annotate2.rc'; -ok (!-r 'annotatei2.rc', 'Removed annotate2.rc'); +ok (!-r 'annotate2.rc', 'Removed annotate2.rc'); exit 0; diff --git a/src/tests/append.t b/src/tests/append.t index f46f99fa7..6a7eab02f 100755 --- a/src/tests/append.t +++ b/src/tests/append.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'append.rc') @@ -48,6 +48,9 @@ like ($output, qr/Description\s+foo\sbar\n/, 'append worked'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/args.t b/src/tests/args.t index cefa50e32..bb9fec2bb 100755 --- a/src/tests/args.t +++ b/src/tests/args.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'args.rc') @@ -64,6 +64,9 @@ like ($output, qr/Description\s+project:p\spri:H\s\+tag\sfoo\n/ms, 'task 1 -- pr unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/bug.425.x b/src/tests/bug.425.t similarity index 100% rename from src/tests/bug.425.x rename to src/tests/bug.425.t diff --git a/src/tests/bug.440.x b/src/tests/bug.440.t similarity index 100% rename from src/tests/bug.440.x rename to src/tests/bug.440.t diff --git a/src/tests/bug.annotate.t b/src/tests/bug.annotate.t index 639cc4b3a..dc904ba04 100755 --- a/src/tests/bug.annotate.t +++ b/src/tests/bug.annotate.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'bug_annotate.rc') @@ -51,6 +51,9 @@ like ($output, qr/ID needed to apply an annotation./, 'failed on annotation with unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/bug.annual.t b/src/tests/bug.annual.t index 659b8d5e4..e915e5b5b 100755 --- a/src/tests/bug.annual.t +++ b/src/tests/bug.annual.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 14; +use Test::More tests => 15; # Create the rc file. if (open my $fh, '>', 'annual.rc') @@ -72,6 +72,9 @@ like ($output, qr/11\s+1\/1\/2009\s+(?:-|\d+\ssecs?)\s+foo/, 'synthetic 10 no cr unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/bug.concat.t b/src/tests/bug.concat.t index b5a6449c6..14d622556 100755 --- a/src/tests/bug.concat.t +++ b/src/tests/bug.concat.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'bug_concat.rc') @@ -71,6 +71,9 @@ like ($output, qr/Description\s+aaa bbb:ccc ddd\n/, 'properly concatenated'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/bug.hang.t b/src/tests/bug.hang.t index 11fccadc0..9ed92347f 100755 --- a/src/tests/bug.hang.t +++ b/src/tests/bug.hang.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'hang.rc') @@ -76,6 +76,9 @@ ok (!-r 'shadow.txt', 'Removed shadow.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/bug.hasnt.t b/src/tests/bug.hasnt.t index 66032770f..6af30a30d 100755 --- a/src/tests/bug.hasnt.t +++ b/src/tests/bug.hasnt.t @@ -40,7 +40,6 @@ if (open my $fh, '>', 'hasnt.rc') } # 1 -diag ("Initialization taskes 6 seconds"); qx{../task rc:hasnt.rc add foo}; # 2 diff --git a/src/tests/bug.period.t b/src/tests/bug.period.t index e16e2be6a..50a660785 100755 --- a/src/tests/bug.period.t +++ b/src/tests/bug.period.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 42; +use Test::More tests => 43; # Create the rc file. if (open my $fh, '>', 'period.rc') @@ -157,6 +157,9 @@ like ($output, qr/\b2y\b/, 'verify 2y'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/bug.sort.t b/src/tests/bug.sort.t index 755ceb964..13e1f345a 100755 --- a/src/tests/bug.sort.t +++ b/src/tests/bug.sort.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'bug_sort.rc') @@ -54,6 +54,9 @@ like ($output, qr/three.*one.*two/msi, 'list did not hang after pri:H on 1'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/cal.t b/src/tests/cal.t index 72dbc3573..c4220e13d 100755 --- a/src/tests/cal.t +++ b/src/tests/cal.t @@ -30,7 +30,7 @@ use strict; use warnings; -use Test::More tests => 75; +use Test::More tests => 76; # Create the rc file. if (open my $fh, '>', 'cal.rc') @@ -242,8 +242,13 @@ like ($output, qr/30;103m25/, 'Holiday åäö is color-coded'); # Cleanup. unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); + +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); + unlink 'details.rc'; ok (!-r 'details.rc', 'Removed details.rc'); diff --git a/src/tests/color.active.t b/src/tests/color.active.t index 9e88fecca..0630f100a 100755 --- a/src/tests/color.active.t +++ b/src/tests/color.active.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -53,6 +53,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m /x, 'color.active'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.blocked.t b/src/tests/color.blocked.t index 09467054a..6ee71bb30 100755 --- a/src/tests/color.blocked.t +++ b/src/tests/color.blocked.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -54,6 +54,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m /x, 'color.blocked'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.disable.t b/src/tests/color.disable.t index 750823edb..e46b7f592 100755 --- a/src/tests/color.disable.t +++ b/src/tests/color.disable.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -51,6 +51,9 @@ unlike ($output, qr/\033\[0m/, 'color.disable - no color reset'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.due.t b/src/tests/color.due.t index 314e969cf..4014cfcbb 100755 --- a/src/tests/color.due.t +++ b/src/tests/color.due.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -52,6 +52,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m/x, 'color.due'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.duetoday.t b/src/tests/color.duetoday.t index 56b640a82..8615bbe43 100755 --- a/src/tests/color.duetoday.t +++ b/src/tests/color.duetoday.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -52,6 +52,9 @@ like ($output, qr/ (?:\033\[31m|\033\[38;5;9m) .* red .* \033\[0m/x, 'col unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.keyword.t b/src/tests/color.keyword.t index a2caca10f..4cc3a3f67 100755 --- a/src/tests/color.keyword.t +++ b/src/tests/color.keyword.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -56,6 +56,9 @@ like ($output, qr/ \033\[32m .* green .* \033\[0m /x, 'color.keywo unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.overdue.t b/src/tests/color.overdue.t index 5fff15211..8e6082be6 100755 --- a/src/tests/color.overdue.t +++ b/src/tests/color.overdue.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -52,6 +52,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m/x, 'color.overdue'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.pri.t b/src/tests/color.pri.t index a198e8f46..ad23cd3e5 100755 --- a/src/tests/color.pri.t +++ b/src/tests/color.pri.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -60,6 +60,9 @@ like ($output, qr/ \033\[33m .* yellow .* \033\[0m /x, 'color.pri.none'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.project.t b/src/tests/color.project.t index 6a5d83da4..a401318f9 100755 --- a/src/tests/color.project.t +++ b/src/tests/color.project.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -53,6 +53,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m /x, 'color.project.re unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.recurring.t b/src/tests/color.recurring.t index 7da224330..1036f2945 100755 --- a/src/tests/color.recurring.t +++ b/src/tests/color.recurring.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -53,6 +53,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m /x, 'color.recur unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.tag.t b/src/tests/color.tag.t index bdebb5c69..8275d3d10 100755 --- a/src/tests/color.tag.t +++ b/src/tests/color.tag.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -57,6 +57,9 @@ like ($output, qr/ \033\[32m .* green .* \033\[0m /x, 'color.tag.green' unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/color.tagged.t b/src/tests/color.tagged.t index b7f1ceef2..2ed7865cd 100755 --- a/src/tests/color.tagged.t +++ b/src/tests/color.tagged.t @@ -28,7 +28,10 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 8; +unlink 'pending.data'; +ok (!-r 'pending.data', 'Removed pending.data'); + # Create the rc file. if (open my $fh, '>', 'color.rc') @@ -53,6 +56,9 @@ like ($output, qr/ \033\[31m .* red .* \033\[0m /x, 'color.tagged'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/config.obsolete.t b/src/tests/config.obsolete.t index 3599e6a84..dc5186ffd 100755 --- a/src/tests/config.obsolete.t +++ b/src/tests/config.obsolete.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'obsolete.rc') @@ -50,6 +50,9 @@ like ($output, qr/ foo\n/, 'unsupported configuration variable'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/confirmation.t b/src/tests/confirmation.t index c52b04ab4..d41f3cc3c 100755 --- a/src/tests/confirmation.t +++ b/src/tests/confirmation.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 47; +use Test::More tests => 48; # Create the rc file. if (open my $fh, '>', 'confirm.rc') @@ -131,6 +131,9 @@ like ($output, qr/(Permanently delete task 7 'foo'\? \(y\/n\)) \1 \1/, 'confirma unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/custom.columns.t b/src/tests/custom.columns.t index 57d232269..b5a5aa1c7 100755 --- a/src/tests/custom.columns.t +++ b/src/tests/custom.columns.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'custom.rc') @@ -50,6 +50,9 @@ like ($output, qr/Unrecognized column name: foo\.\n/, 'custom report spotted inv unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/custom.recur_ind.t b/src/tests/custom.recur_ind.t index 32d4ef7ef..f666d8bbc 100755 --- a/src/tests/custom.recur_ind.t +++ b/src/tests/custom.recur_ind.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'custom.rc') @@ -58,6 +58,9 @@ unlike ($output, qr/2\s+RE/, 'No custom recurrence indicator t2'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/custom.t b/src/tests/custom.t index 08b4f968b..3afb2406b 100755 --- a/src/tests/custom.t +++ b/src/tests/custom.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'custom.rc') @@ -56,6 +56,9 @@ unlike ($output, qr/two/, 'custom filter excluded'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/custom.tag_ind.t b/src/tests/custom.tag_ind.t index 206844d28..0ac3bdfe1 100755 --- a/src/tests/custom.tag_ind.t +++ b/src/tests/custom.tag_ind.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'custom.rc') @@ -58,6 +58,9 @@ unlike ($output, qr/2\s+TAG/, 'No custom tag indicator t2'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/dateformat.t b/src/tests/dateformat.t index 0e509f26d..77b7fb521 100755 --- a/src/tests/dateformat.t +++ b/src/tests/dateformat.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 14; +use Test::More tests => 15; # Create the rc file. if (open my $fh, '>', 'date1.rc') @@ -84,6 +84,9 @@ like ($output, qr/08 Apr 2010 - Thu/, 'date format D b Y - a parsed'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/datesort.t b/src/tests/datesort.t index afe736400..a80510645 100755 --- a/src/tests/datesort.t +++ b/src/tests/datesort.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'datesort.rc') @@ -60,6 +60,9 @@ like ($output, qr/three.+two.+one/ms, 'Sorting by due- with format MD works'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/default.t b/src/tests/default.t index a77385656..3446898af 100755 --- a/src/tests/default.t +++ b/src/tests/default.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 17; +use Test::More tests => 18; # Create the rc file. if (open my $fh, '>', 'default.rc') @@ -76,6 +76,9 @@ like ($output, qr/1 PROJECT L .+ priority specified/, 'default command worked'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/denotate.t b/src/tests/denotate.t index bb12a6b66..1cfc66827 100755 --- a/src/tests/denotate.t +++ b/src/tests/denotate.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 29; +use Test::More tests => 30; # Create the rc file. if (open my $fh, '>', 'denotate.rc') @@ -111,6 +111,9 @@ unlike ($output, qr/frog.+\d{1,2}\/\d{1,2}\/\d{4} Kermit and Miss Piggy/ms, 'Del unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/dependencies.t b/src/tests/dependencies.t index 8c3f0aadf..535fdf953 100755 --- a/src/tests/dependencies.t +++ b/src/tests/dependencies.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 31; +use Test::More tests => 32; # Create the rc file. if (open my $fh, '>', 'dep.rc') diff --git a/src/tests/due.t b/src/tests/due.t index c45d35802..d74c52e96 100755 --- a/src/tests/due.t +++ b/src/tests/due.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'due.rc') @@ -61,6 +61,9 @@ like ($output, qr/\s+$almost\s+/, 'two not marked due'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/duplicate.t b/src/tests/duplicate.t index b00760db6..8a82cf22c 100755 --- a/src/tests/duplicate.t +++ b/src/tests/duplicate.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 15; +use Test::More tests => 16; # Create the rc file. if (open my $fh, '>', 'dup.rc') @@ -65,6 +65,9 @@ like ($output, qr/Created\s+task\s+4/, 'duplicate output of new task id'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/enpassant.t b/src/tests/enpassant.t index de3810957..5fc651dbd 100755 --- a/src/tests/enpassant.t +++ b/src/tests/enpassant.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 13; # Create the rc file. if (open my $fh, '>', 'enp.rc') @@ -57,6 +57,9 @@ like ($output, qr/Tags\s+tag/, 'en passant 2 description change'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/export.csv.t b/src/tests/export.csv.t index 19a5b91f5..f1a677328 100755 --- a/src/tests/export.csv.t +++ b/src/tests/export.csv.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'export.rc') @@ -70,6 +70,9 @@ ok (!-r 'export.txt', 'Removed export.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/export.yaml.t b/src/tests/export.yaml.t index 0a5466e45..7b1963752 100755 --- a/src/tests/export.yaml.t +++ b/src/tests/export.yaml.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 21; +use Test::More tests => 22; # Create the rc file. if (open my $fh, '>', 'export.rc') @@ -74,6 +74,9 @@ ok (!-r 'export.txt', 'Removed export.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/filter.t b/src/tests/filter.t index 5d5c4622b..65b4ec2d2 100755 --- a/src/tests/filter.t +++ b/src/tests/filter.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 130; +use Test::More tests => 131; # Create the rc file. if (open my $fh, '>', 'filter.rc') @@ -213,6 +213,9 @@ unlike ($output, qr/seven/, 'r7'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_debug.t b/src/tests/hook.api.task_debug.t index 70277639a..fd553138f 100755 --- a/src/tests/hook.api.task_debug.t +++ b/src/tests/hook.api.task_debug.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -65,6 +65,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_exit.t b/src/tests/hook.api.task_exit.t index 4a8177e17..60deeb45d 100755 --- a/src/tests/hook.api.task_exit.t +++ b/src/tests/hook.api.task_exit.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -63,6 +63,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_feature.t b/src/tests/hook.api.task_feature.t index 7961c76a0..891c50460 100755 --- a/src/tests/hook.api.task_feature.t +++ b/src/tests/hook.api.task_feature.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -73,6 +73,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_footnote.t b/src/tests/hook.api.task_footnote.t index 5f7268470..b4c38d820 100755 --- a/src/tests/hook.api.task_footnote.t +++ b/src/tests/hook.api.task_footnote.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_config.t b/src/tests/hook.api.task_get_config.t index 27cc22786..8a4f5679e 100755 --- a/src/tests/hook.api.task_get_config.t +++ b/src/tests/hook.api.task_get_config.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_description.t b/src/tests/hook.api.task_get_description.t index 84400d570..10aaada06 100755 --- a/src/tests/hook.api.task_get_description.t +++ b/src/tests/hook.api.task_get_description.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_due.t b/src/tests/hook.api.task_get_due.t index b71fdbb33..0d4ca12d0 100755 --- a/src/tests/hook.api.task_get_due.t +++ b/src/tests/hook.api.task_get_due.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -67,6 +67,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_end.t b/src/tests/hook.api.task_get_end.t index 10e47d80a..6144c305c 100755 --- a/src/tests/hook.api.task_get_end.t +++ b/src/tests/hook.api.task_get_end.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_entry.t b/src/tests/hook.api.task_get_entry.t index 6d0dccace..c55786656 100755 --- a/src/tests/hook.api.task_get_entry.t +++ b/src/tests/hook.api.task_get_entry.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -67,6 +67,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_priority.t b/src/tests/hook.api.task_get_priority.t index 45ffda0f5..a0fb8db23 100755 --- a/src/tests/hook.api.task_get_priority.t +++ b/src/tests/hook.api.task_get_priority.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_project.t b/src/tests/hook.api.task_get_project.t index 6da6662ae..8842c9a3c 100755 --- a/src/tests/hook.api.task_get_project.t +++ b/src/tests/hook.api.task_get_project.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_start.t b/src/tests/hook.api.task_get_start.t index 10d2fb95b..adae49233 100755 --- a/src/tests/hook.api.task_get_start.t +++ b/src/tests/hook.api.task_get_start.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_status.t b/src/tests/hook.api.task_get_status.t index f7f675a50..67f7a491e 100755 --- a/src/tests/hook.api.task_get_status.t +++ b/src/tests/hook.api.task_get_status.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_until.t b/src/tests/hook.api.task_get_until.t index e75975577..59421f45e 100755 --- a/src/tests/hook.api.task_get_until.t +++ b/src/tests/hook.api.task_get_until.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -67,6 +67,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_uuid.t b/src/tests/hook.api.task_get_uuid.t index f6f0af2da..5223db26c 100755 --- a/src/tests/hook.api.task_get_uuid.t +++ b/src/tests/hook.api.task_get_uuid.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_get_wait.t b/src/tests/hook.api.task_get_wait.t index 5b99a5ab6..c36a483ab 100755 --- a/src/tests/hook.api.task_get_wait.t +++ b/src/tests/hook.api.task_get_wait.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -67,6 +67,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_header.t b/src/tests/hook.api.task_header.t index 1f215fdee..6a9007923 100755 --- a/src/tests/hook.api.task_header.t +++ b/src/tests/hook.api.task_header.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_lua_version.t b/src/tests/hook.api.task_lua_version.t index 8db97ebcd..5b1ca5f64 100755 --- a/src/tests/hook.api.task_lua_version.t +++ b/src/tests/hook.api.task_lua_version.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -63,6 +63,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_os.t b/src/tests/hook.api.task_os.t index 98a17c66e..b59648a4e 100755 --- a/src/tests/hook.api.task_os.t +++ b/src/tests/hook.api.task_os.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -67,6 +67,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.api.task_version.t b/src/tests/hook.api.task_version.t index 553cdca5f..22876d03c 100755 --- a/src/tests/hook.api.task_version.t +++ b/src/tests/hook.api.task_version.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -63,6 +63,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-age.t b/src/tests/hook.format-age.t index 74e812a48..a70cc2981 100755 --- a/src/tests/hook.format-age.t +++ b/src/tests/hook.format-age.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -70,6 +70,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-age_compact.t b/src/tests/hook.format-age_compact.t index aba054ea1..0095fefaa 100755 --- a/src/tests/hook.format-age_compact.t +++ b/src/tests/hook.format-age_compact.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -71,6 +71,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-countdown.t b/src/tests/hook.format-countdown.t index 966ec608f..cc5e2bb4b 100755 --- a/src/tests/hook.format-countdown.t +++ b/src/tests/hook.format-countdown.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-countdown_compact.t b/src/tests/hook.format-countdown_compact.t index 08e0a46bd..b3609641a 100755 --- a/src/tests/hook.format-countdown_compact.t +++ b/src/tests/hook.format-countdown_compact.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -70,6 +70,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-depends.t b/src/tests/hook.format-depends.t index bce01f7ab..169b34926 100755 --- a/src/tests/hook.format-depends.t +++ b/src/tests/hook.format-depends.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -69,6 +69,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-description.t b/src/tests/hook.format-description.t index 898a45605..3e0cd945e 100755 --- a/src/tests/hook.format-description.t +++ b/src/tests/hook.format-description.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-description_only.t b/src/tests/hook.format-description_only.t index 4d1ed24c4..3b8eec31c 100755 --- a/src/tests/hook.format-description_only.t +++ b/src/tests/hook.format-description_only.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -69,6 +69,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-due.t b/src/tests/hook.format-due.t index 42c106427..0a60e0320 100755 --- a/src/tests/hook.format-due.t +++ b/src/tests/hook.format-due.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-end.t b/src/tests/hook.format-end.t index 10a21d302..3ead3f1db 100755 --- a/src/tests/hook.format-end.t +++ b/src/tests/hook.format-end.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -69,6 +69,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-entry.t b/src/tests/hook.format-entry.t index fd709df46..0d9b827a6 100755 --- a/src/tests/hook.format-entry.t +++ b/src/tests/hook.format-entry.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-id.t b/src/tests/hook.format-id.t index 5a28722fe..36b9ec461 100755 --- a/src/tests/hook.format-id.t +++ b/src/tests/hook.format-id.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -71,6 +71,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-priority-long.t b/src/tests/hook.format-priority-long.t index b22e253a7..91280b864 100755 --- a/src/tests/hook.format-priority-long.t +++ b/src/tests/hook.format-priority-long.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -82,6 +82,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-priority.t b/src/tests/hook.format-priority.t index 37703f70b..5fab858ba 100755 --- a/src/tests/hook.format-priority.t +++ b/src/tests/hook.format-priority.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -80,6 +80,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-project.t b/src/tests/hook.format-project.t index 6c2049f8e..42da13a50 100755 --- a/src/tests/hook.format-project.t +++ b/src/tests/hook.format-project.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-prompt.t b/src/tests/hook.format-prompt.t index 777132d3c..f9789b6aa 100755 --- a/src/tests/hook.format-prompt.t +++ b/src/tests/hook.format-prompt.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-recur.t b/src/tests/hook.format-recur.t index 3e99b9bbc..88e6e2286 100755 --- a/src/tests/hook.format-recur.t +++ b/src/tests/hook.format-recur.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-start.t b/src/tests/hook.format-start.t index d192ef513..01ccd6334 100755 --- a/src/tests/hook.format-start.t +++ b/src/tests/hook.format-start.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -69,6 +69,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-tags.t b/src/tests/hook.format-tags.t index 3f87504e2..8c71d4613 100755 --- a/src/tests/hook.format-tags.t +++ b/src/tests/hook.format-tags.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-uuid.t b/src/tests/hook.format-uuid.t index 7180ad6df..3f44301ce 100755 --- a/src/tests/hook.format-uuid.t +++ b/src/tests/hook.format-uuid.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.format-wait.t b/src/tests/hook.format-wait.t index f8924ac64..788c6cb2c 100755 --- a/src/tests/hook.format-wait.t +++ b/src/tests/hook.format-wait.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -68,6 +68,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.post-start.t b/src/tests/hook.post-start.t index 0b1f37a32..76798a294 100755 --- a/src/tests/hook.post-start.t +++ b/src/tests/hook.post-start.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -63,6 +63,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.pre-completed.t b/src/tests/hook.pre-completed.t index 214849160..5dc188ae8 100755 --- a/src/tests/hook.pre-completed.t +++ b/src/tests/hook.pre-completed.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -73,6 +73,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/hook.pre-exit.t b/src/tests/hook.pre-exit.t index ea6d19380..cdffa0749 100755 --- a/src/tests/hook.pre-exit.t +++ b/src/tests/hook.pre-exit.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'hook.rc') @@ -64,6 +64,9 @@ else unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/import.143.t b/src/tests/import.143.t index 1991c31b8..c4782d5a4 100755 --- a/src/tests/import.143.t +++ b/src/tests/import.143.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'import.rc') @@ -63,6 +63,9 @@ ok (!-r 'import.txt', 'Removed import.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/import.150.t b/src/tests/import.150.t index d191a485e..edf40a53e 100755 --- a/src/tests/import.150.t +++ b/src/tests/import.150.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'import.rc') @@ -63,6 +63,9 @@ ok (!-r 'import.txt', 'Removed import.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/import.160.t b/src/tests/import.160.t index 1b14abacc..0dbfa5378 100755 --- a/src/tests/import.160.t +++ b/src/tests/import.160.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'import.rc') @@ -63,6 +63,9 @@ ok (!-r 'import.txt', 'Removed import.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/import.cmd.t b/src/tests/import.cmd.t index 3fbfff974..e71dc8bfb 100755 --- a/src/tests/import.cmd.t +++ b/src/tests/import.cmd.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'import.rc') @@ -62,6 +62,9 @@ ok (!-r 'import.txt', 'Removed import.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/import.csv.t b/src/tests/import.csv.t index b4d93235b..41a64f797 100755 --- a/src/tests/import.csv.t +++ b/src/tests/import.csv.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'import.rc') @@ -63,6 +63,9 @@ ok (!-r 'import.txt', 'Removed import.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/import.txt.t b/src/tests/import.txt.t index d5f3c2341..cf11fdafe 100755 --- a/src/tests/import.txt.t +++ b/src/tests/import.txt.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'import.rc') @@ -64,6 +64,9 @@ ok (!-r 'import.txt', 'Removed import.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/info.t b/src/tests/info.t index 024e05356..b86593a84 100755 --- a/src/tests/info.t +++ b/src/tests/info.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'info.rc') @@ -58,6 +58,9 @@ unlike ($output, qr/Description\s+test three\n/, 'single auto-info !three'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/label.t b/src/tests/label.t index d46a89a10..851a96891 100755 --- a/src/tests/label.t +++ b/src/tests/label.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; # Create the rc file. if (open my $fh, '>', 'custom.rc') @@ -59,6 +59,9 @@ unlike ($output, qr/two/, 'custom filter excluded'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/limit.t b/src/tests/limit.t index 3c9e0ce7b..fa00f5958 100755 --- a/src/tests/limit.t +++ b/src/tests/limit.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'limit.rc') @@ -86,6 +86,9 @@ like ($output, qr/^30 tasks, truncated to 20 lines$/ms, 'limited to page'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/list.all.projects.t b/src/tests/list.all.projects.t index e76aaaf23..2c6a40769 100755 --- a/src/tests/list.all.projects.t +++ b/src/tests/list.all.projects.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'projects.rc') @@ -59,6 +59,9 @@ like ($output, qr/p2/, 'p2 listed'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/list.all.tags.t b/src/tests/list.all.tags.t index 6b61e4cdc..4a1f6cd1e 100755 --- a/src/tests/list.all.tags.t +++ b/src/tests/list.all.tags.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'tags.rc') @@ -59,6 +59,9 @@ like ($output, qr/t2/, 't2 listed'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/log.t b/src/tests/log.t index 32f1ba8fb..4c6100d20 100755 --- a/src/tests/log.t +++ b/src/tests/log.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'log.rc') @@ -51,6 +51,9 @@ like ($output, qr/UUID\s+[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/nag.t b/src/tests/nag.t index fced48bdc..e5ca0e8f7 100755 --- a/src/tests/nag.t +++ b/src/tests/nag.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'nag.rc') @@ -58,6 +58,9 @@ unlike (qx{../task rc:nag.rc do 1}, qr/NAG/, 'do due:yesterday -> no nag'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/next.t b/src/tests/next.t index f3de2dbd2..e33a469bd 100755 --- a/src/tests/next.t +++ b/src/tests/next.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'next.rc') @@ -54,6 +54,9 @@ like ($output, qr/\s3\sB\s+H\s+(?:-|\d secs?)\sBH\n/, 'BH shown'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/oldest.t b/src/tests/oldest.t index b8449b804..a0a8c5a72 100755 --- a/src/tests/oldest.t +++ b/src/tests/oldest.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 56; +use Test::More tests => 57; # Create the rc file. if (open my $fh, '>', 'oldest.rc') @@ -131,6 +131,9 @@ like ($output, qr/eleven/, 'newest: eleven'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/overdue.t b/src/tests/overdue.t index 55fcc6a16..2a45381e3 100755 --- a/src/tests/overdue.t +++ b/src/tests/overdue.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'due.rc') @@ -53,6 +53,9 @@ unlike ($output, qr/three/, 'overdue: task 3 does not show up'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/override.t b/src/tests/override.t index e60d84da6..c6ca85baf 100755 --- a/src/tests/override.t +++ b/src/tests/override.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'or.rc') @@ -54,6 +54,9 @@ like ($output, qr/ONE.+TWO/ms, 'filter override > rc setting'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/prepend.t b/src/tests/prepend.t index 09de00cc4..7d27b3a5b 100755 --- a/src/tests/prepend.t +++ b/src/tests/prepend.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'prepend.rc') @@ -48,6 +48,9 @@ like ($output, qr/Description\s+foo\sbar\n/, 'prepend worked'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/recur.limit.t b/src/tests/recur.limit.t index b9f716d12..9a52cc6f7 100755 --- a/src/tests/recur.limit.t +++ b/src/tests/recur.limit.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'recur.rc') @@ -53,6 +53,9 @@ is (scalar @tasks, 4, 'recurrence.limit override to 4'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/recur.t b/src/tests/recur.t index 330069314..54795d66d 100755 --- a/src/tests/recur.t +++ b/src/tests/recur.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'recur.rc') @@ -57,6 +57,9 @@ like ($output, qr/second .* third .* first/msx, 'weekly 3d daily'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/roundtrip.t b/src/tests/roundtrip.t index 79a3be630..11193314e 100755 --- a/src/tests/roundtrip.t +++ b/src/tests/roundtrip.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'roundtrip.rc') @@ -72,6 +72,9 @@ ok (!-r 'roundtrip.txt', 'Removed roundtrip.txt'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/sequence.t b/src/tests/sequence.t index 58b3540bb..c04e5327d 100755 --- a/src/tests/sequence.t +++ b/src/tests/sequence.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 28; +use Test::More tests => 29; # Create the rc file. if (open my $fh, '>', 'seq.rc') @@ -121,6 +121,9 @@ like ($output, qr/\d+\/\d+\/\d+ note/, 'sequence annotate 2'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/shell.t b/src/tests/shell.t index c6c811ce2..e5e7f1a94 100755 --- a/src/tests/shell.t +++ b/src/tests/shell.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'shell.rc') @@ -52,6 +52,9 @@ like ($output, qr/Description\s+foo/, 'add/info working'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/start.t b/src/tests/start.t index 2b8e37c84..e8c1d22bb 100755 --- a/src/tests/start.t +++ b/src/tests/start.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 23; +use Test::More tests => 25; # Create the rc file. if (open my $fh, '>', 'start.rc') @@ -106,6 +106,10 @@ ok (-r 'pending.data', 'Need to remove pending.data'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +ok (-r 'completed.data', 'Need to remove completed.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + ok (-r 'undo.data', 'Need to remove undo.data'); unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/subproject.t b/src/tests/subproject.t index 81e298263..f66fd9a06 100755 --- a/src/tests/subproject.t +++ b/src/tests/subproject.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 13; # Create the rc file. if (open my $fh, '>', 'sp.rc') @@ -66,6 +66,9 @@ like ($output, qr/No matches./, 'abc,ab,a,b | abcd -> nul'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/substitute.t b/src/tests/substitute.t index c63e97385..af09baaf9 100755 --- a/src/tests/substitute.t +++ b/src/tests/substitute.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'subst.rc') @@ -72,6 +72,9 @@ like ($output, qr/aaa ccc/, 'word deletion in description'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/tag.t b/src/tests/tag.t index adf139c85..9b37c0e8b 100755 --- a/src/tests/tag.t +++ b/src/tests/tag.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; # Create the rc file. if (open my $fh, '>', 'tag.rc') @@ -66,6 +66,9 @@ unlike ($output, qr/^Tags/m, '-missing NOP'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data'); diff --git a/src/tests/utf8.t b/src/tests/utf8.t index bf3914aac..64339c443 100755 --- a/src/tests/utf8.t +++ b/src/tests/utf8.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 8; # Create the rc file. if (open my $fh, '>', 'utf8.rc') @@ -73,6 +73,9 @@ like ($output, qr/utf8 in tag/, 'utf8 in tag works'); unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); +unlink 'completed.data'; +ok (!-r 'completed.data', 'Removed completed.data'); + unlink 'undo.data'; ok (!-r 'undo.data', 'Removed undo.data');