Enhancement - added echo of id, description
- Added an echo of the ID and description of the task for the start, stop, do, undo, delete and undelete commands. Thanks to Bruce Dillahunty. - Updated documentation. - Added "echo.command=no" to delete.t, undo.t because the default value is "yes", which breaks tests. - Fixed syntax errors in utf8.t - Corrected expected number of tests in recur.t
This commit is contained in:
@@ -33,7 +33,8 @@ use Test::More tests => 16;
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'undelete.rc')
|
||||
{
|
||||
print $fh "data.location=.\n";
|
||||
print $fh "data.location=.\n",
|
||||
"echo.command=no\n";
|
||||
close $fh;
|
||||
ok (-r 'undelete.rc', 'Created undelete.rc');
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 6;
|
||||
use Test::More tests => 5;
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'recur.rc')
|
||||
|
||||
@@ -33,7 +33,8 @@ use Test::More tests => 15;
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'undo.rc')
|
||||
{
|
||||
print $fh "data.location=.\n";
|
||||
print $fh "data.location=.\n",
|
||||
"echo.command=no\n";
|
||||
close $fh;
|
||||
ok (-r 'undo.rc', 'Created undo.rc');
|
||||
}
|
||||
|
||||
@@ -62,11 +62,11 @@ diag ($output);
|
||||
like ($output, qr/17/, 'all 17 tasks shown');
|
||||
|
||||
qx{../task rc:utf8.rc add project:Çirçös utf8 in project};
|
||||
my $output = qx{../task rc:utf8.rc ls project:Çirçös};
|
||||
$output = qx{../task rc:utf8.rc ls project:Çirçös};
|
||||
like ($output, qr/Çirçös.+utf8 in project/, 'utf8 in project works');
|
||||
|
||||
qx{../task rc:utf8.rc add utf8 in tag +☺};
|
||||
my $output = qx{../task rc:utf8.rc ls +☺};
|
||||
$output = qx{../task rc:utf8.rc ls +☺};
|
||||
like ($output, qr/utf8 in tag/, 'utf8 in tag works');
|
||||
|
||||
# Cleanup.
|
||||
|
||||
Reference in New Issue
Block a user