From eb1304ec4197af902f3d0ab79e8c5acc36912b91 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 22 May 2010 14:02:33 -0400 Subject: [PATCH] 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. --- src/tests/hook.format-countdown.t | 2 +- src/tests/hook.format-countdown_compact.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/hook.format-countdown.t b/src/tests/hook.format-countdown.t index 8d0f23ee5..966ec608f 100755 --- a/src/tests/hook.format-countdown.t +++ b/src/tests/hook.format-countdown.t @@ -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 -> '); + like ($output, qr/<-?\d+\s\D+>/, 'format-countdown hook countdown -> '); } else { diff --git a/src/tests/hook.format-countdown_compact.t b/src/tests/hook.format-countdown_compact.t index 1820d378c..99dd05823 100755 --- a/src/tests/hook.format-countdown_compact.t +++ b/src/tests/hook.format-countdown_compact.t @@ -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 -> '); + like ($output, qr/<-?\d+\D+>/, 'format-countdown_compact hook countdown_compact -> '); } else {