Unit Tests

- Modified unit tests after the #956 fix.
This commit is contained in:
Paul Beckingham 2012-05-23 07:02:57 -04:00
parent 542f1e0f82
commit 003f092bf4
3 changed files with 3 additions and 4 deletions

View file

@ -48,8 +48,7 @@ qx{../src/task rc:bug.rc 1 annotate des};
my $output = qx{../src/task rc:bug.rc 1 info}; my $output = qx{../src/task rc:bug.rc 1 info};
unlike ($output, qr/description/ms, 'Attribute not completed in description'); unlike ($output, qr/description/ms, 'Attribute not completed in description');
$output = qx{../src/task test rc:bug.rc rc.report.test.columns:des rc.report.test.labels:__}; $output = qx{../src/task test rc:bug.rc rc.report.test.columns:description rc.report.test.labels:__};
diag ($output);
like ($output, qr/__/ms, 'Custom column present in the output'); like ($output, qr/__/ms, 'Custom column present in the output');
### Cleanup. ### Cleanup.

View file

@ -53,7 +53,7 @@ if ($output =~ /PUC-Rio/)
{ {
# Test the hook. # Test the hook.
$output = qx{../src/task rc:hook.rc _version}; $output = qx{../src/task rc:hook.rc _version};
like ($output, qr/\n\w{7}/ms, 'Found marker after output'); like ($output, qr/\w{7}\nmarker/ms, 'Found marker after output');
} }
else else
{ {

View file

@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/)
{ {
# Test the hook. # Test the hook.
$output = qx{../src/task rc:hook.rc _version}; $output = qx{../src/task rc:hook.rc _version};
like ($output, qr/^marker.+\n\w{7}/ms, 'Found marker before output'); like ($output, qr/^marker.+\b\w{7}\b/ms, 'Found marker before output');
} }
else else
{ {