Unit Tests - fix

- Fixed incorrect regex in hook format unit tests.  Note that this
  doesn't show up in the tinderbox, because that version of task is
  not built with Lua support.
This commit is contained in:
Paul Beckingham 2010-05-22 14:02:33 -04:00
parent a5b57ec2ac
commit eb1304ec41
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ if ($output =~ /PUC-Rio/)
qx{../task rc:hook.rc add foo due:eom};
$output = qx{../task rc:hook.rc long};
like ($output, qr/<(?:- )?\d+.+>/, 'format-countdown hook countdown -> <countdown>');
like ($output, qr/<-?\d+\s\D+>/, 'format-countdown hook countdown -> <countdown>');
}
else
{

View file

@ -59,7 +59,7 @@ if ($output =~ /PUC-Rio/)
qx{../task rc:hook.rc add foo due:eom};
$output = qx{../task rc:hook.rc long};
like ($output, qr/<(?:- )?\d+.+>/, 'format-countdown_compact hook countdown_compact -> <countdown_compact>');
like ($output, qr/<-?\d+\D+>/, 'format-countdown_compact hook countdown_compact -> <countdown_compact>');
}
else
{