mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-01 11:20:19 +02:00
Bug Fix
- wrong regexp in cal.t when matching '$month $year'
This commit is contained in:
parent
89267846ca
commit
72763f2a2b
1 changed files with 5 additions and 5 deletions
|
@ -67,7 +67,7 @@ else
|
||||||
{
|
{
|
||||||
like ($output, qr/\[30;46m$day/, 'Current day is highlighted');
|
like ($output, qr/\[30;46m$day/, 'Current day is highlighted');
|
||||||
}
|
}
|
||||||
like ($output, qr/$month\w+?\s+?$year/, 'Current month and year are displayed');
|
like ($output, qr/$month\S*?\s+?$year/, 'Current month and year are displayed');
|
||||||
$output = qx{../task rc:cal.rc add zero};
|
$output = qx{../task rc:cal.rc add zero};
|
||||||
unlike ($output, qr/\[41m\d+/, 'No overdue tasks are present');
|
unlike ($output, qr/\[41m\d+/, 'No overdue tasks are present');
|
||||||
unlike ($output, qr/\[43m\d+/, 'No due tasks are present');
|
unlike ($output, qr/\[43m\d+/, 'No due tasks are present');
|
||||||
|
@ -76,17 +76,17 @@ like ($output, qr/Su Mo Tu/, 'Week starts on Sunday');
|
||||||
$output = qx{../task rc:cal.rc rc.weekstart:Monday cal};
|
$output = qx{../task rc:cal.rc rc.weekstart:Monday cal};
|
||||||
like ($output, qr/Fr Sa Su/, 'Week starts on Monday');
|
like ($output, qr/Fr Sa Su/, 'Week starts on Monday');
|
||||||
$output = qx{../task rc:cal.rc cal y};
|
$output = qx{../task rc:cal.rc cal y};
|
||||||
like ($output, qr/$month\w+?\s+?$year/, 'Current month and year are displayed');
|
like ($output, qr/$month\S*?\s+?$year/, 'Current month and year are displayed');
|
||||||
if ( $month eq "Jan")
|
if ( $month eq "Jan")
|
||||||
{
|
{
|
||||||
$nextyear = $nextyear - 1;
|
$nextyear = $nextyear - 1;
|
||||||
}
|
}
|
||||||
like ($output, qr/$prevmonth\w+?\s+?$nextyear/, 'Month and year one year ahead are displayed');
|
like ($output, qr/$prevmonth\S*?\s+?$nextyear/, 'Month and year one year ahead are displayed');
|
||||||
if ( $month eq "Jan")
|
if ( $month eq "Jan")
|
||||||
{
|
{
|
||||||
$nextyear = $nextyear + 1;
|
$nextyear = $nextyear + 1;
|
||||||
}
|
}
|
||||||
unlike ($output, qr/$month\w+?\s+?$nextyear/, 'Current month and year ahead are not displayed');
|
unlike ($output, qr/$month\S*?\s+?$nextyear/, 'Current month and year ahead are not displayed');
|
||||||
|
|
||||||
# task cal due and task cal due y
|
# task cal due and task cal due y
|
||||||
qx{../task rc:cal.rc add due:20190515 one};
|
qx{../task rc:cal.rc add due:20190515 one};
|
||||||
|
@ -210,7 +210,7 @@ my $duedate = $year.$mon.$day;
|
||||||
|
|
||||||
qx{../task rc:details.rc add due:$duedate rc.monthsperline:1 nine};
|
qx{../task rc:details.rc add due:$duedate rc.monthsperline:1 nine};
|
||||||
$output = qx{../task rc:details.rc cal};
|
$output = qx{../task rc:details.rc cal};
|
||||||
like ($output, qr/$month\w+?\s+?$year/, 'Current month and year are displayed');
|
like ($output, qr/$month\S*?\s+?$year/, 'Current month and year are displayed');
|
||||||
like ($output, qr/$duedate/, 'Due date on current day is displayed');
|
like ($output, qr/$duedate/, 'Due date on current day is displayed');
|
||||||
like ($output, qr/1 task/, '1 due task is displayed');
|
like ($output, qr/1 task/, '1 due task is displayed');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue