- adapted makefile and unit tests to new place of test dir
This commit is contained in:
Federico Hernandez 2010-12-28 21:38:03 +01:00
parent 17ef077e27
commit 5d775fdc3e
176 changed files with 1288 additions and 1287 deletions

View file

@ -45,15 +45,15 @@ if (open my $fh, '>', 'special.rc')
}
# Prove that +nocolor suppresses all color for a task.
qx{../task rc:special.rc add should have no red +nocolor priority:H};
qx{../task rc:special.rc add should be red +nonag};
my $output = qx{../task rc:special.rc ls};
qx{../src/task rc:special.rc add should have no red +nocolor priority:H};
qx{../src/task rc:special.rc add should be red +nonag};
my $output = qx{../src/task rc:special.rc ls};
like ($output, qr/\s1\s+H\s+should have no red/, 'no red in first task due to +nocolor');
like ($output, qr/\033\[31mshould be red\s+\033\[0m/, 'red in second task');
# Prove that +nonag suppresses nagging when a low priority task is completed
# ahead of a high priority one.
$output = qx{../task rc:special.rc done 2};
$output = qx{../src/task rc:special.rc done 2};
unlike ($output, qr/NAG/, '+nonag suppressed nagging for task 2');
# Cleanup.