Unit Tests

- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
Paul Beckingham
2012-07-03 15:43:19 -04:00
parent 75822eed47
commit da575c4043
185 changed files with 1591 additions and 1591 deletions

View File

@@ -43,11 +43,11 @@ if (open my $fh, '>', 'pri.rc')
}
# Generate the usage screen, and locate the custom report on it.
qx{../src/task rc:pri.rc add one pri:H};
qx{../src/task rc:pri.rc add two pri:M};
qx{../src/task rc:pri.rc add three pri:L};
qx{../src/task rc:pri.rc add one pri:H 2>&1};
qx{../src/task rc:pri.rc add two pri:M 2>&1};
qx{../src/task rc:pri.rc add three pri:L 2>&1};
my $output = qx{../src/task rc:pri.rc foo};
my $output = qx{../src/task rc:pri.rc foo 2>&1};
like ($output, qr/ID.+Pri/, 'priority.long indicator heading');
like ($output, qr/1\s+High/, 'priority.long High');
like ($output, qr/2\s+Medium/, 'priority.long Medium');