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'.
This commit is contained in:
Paul Beckingham 2013-04-07 15:06:38 -04:00
parent e746a95969
commit 066d2a54ad
2 changed files with 5 additions and 4 deletions

View file

@ -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 <data.location>/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.

View file

@ -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);