From 066d2a54adfd9c0d068fb68792448da524c0b744 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 7 Apr 2013 15:06:38 -0400 Subject: [PATCH] Unit Tests - Modifed the color.duetoday.t test to look for 'red', which for some reason fails on Ubuntu 12.10, *sometimes*. This change removes the red/rgb400 duality, which was wrong anyway. We'll call this 'cleanup'. --- ChangeLog.230 | 4 ++-- test/color.duetoday.t | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog.230 b/ChangeLog.230 index ef51f9fe7..bf9be2557 100644 --- a/ChangeLog.230 +++ b/ChangeLog.230 @@ -8,13 +8,13 @@ Features + #934 support for 'reserved.lines' to accomodate multi-line shell prompts when used in conjunction with 'limit:page' (thanks to Robert Gill). + + #1227 A new 'verify_l10n' utility ensures the localizations are in sync (thanks to + Wim Schuermann). + Stores un-synched transactions in /backlog.data. + Adds a new 'synchronize' command to sync data with a task server. + Adds a new 'sync' verbosity token, which will reminds when a backlog builds up and needs a sync. + Supports IPv4 and IPv6 server addresses. - + A new 'verify_l10n' utility ensures the localizations are in sync (thanks to - Wim Schuermann). Bugs + #1197 Now 'tasksh' recognizes Ctrl-D to exit. diff --git a/test/color.duetoday.t b/test/color.duetoday.t index c8e7d68ce..910378d19 100755 --- a/test/color.duetoday.t +++ b/test/color.duetoday.t @@ -35,6 +35,7 @@ if (open my $fh, '>', 'color.rc') { print $fh "data.location=.\n", "color.due.today=red\n", + "color.alternate=\n", "_forcecolor=1\n", "dateformat=m/d/Y\n"; close $fh; @@ -46,8 +47,8 @@ qx{../src/task rc:color.rc add due:12/31/2037 nothing 2>&1}; qx{../src/task rc:color.rc add due:5minutes red 2>&1}; my $output = qx{../src/task rc:color.rc list 2>&1}; -like ($output, qr/ (?!<\033\[\d\dm) \d{1,2}\/\d{1,2}\/\d{4} (?!>\033\[0m) .* nothing /x, 'none'); -like ($output, qr/ (?:\033\[31m|\033\[38;5;9m) .* red .* \033\[0m/x, 'color.due.today'); +like ($output, qr/(?!<\033\[\d\dm) \d{1,2}\/\d{1,2}\/\d{4} (?!>\033\[0m) .* nothing /x, 'none'); +like ($output, qr/\033\[31mred\s+\033\[0m/x, 'color.due.today'); # Cleanup. unlink qw(pending.data completed.data undo.data backlog.data color.rc);