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

@@ -40,13 +40,13 @@ if (open my $fh, '>', 'completed.rc')
}
# Add two tasks, mark 1 as done, the other as deleted.
qx{../src/task rc:completed.rc add one};
qx{../src/task rc:completed.rc add two};
qx{../src/task rc:completed.rc 1 done};
qx{../src/task rc:completed.rc 2 delete};
qx{../src/task rc:completed.rc add one 2>&1};
qx{../src/task rc:completed.rc add two 2>&1};
qx{../src/task rc:completed.rc 1 done 2>&1};
qx{../src/task rc:completed.rc 2 delete 2>&1};
# Generate completed report.
my $output = qx{../src/task rc:completed.rc completed};
my $output = qx{../src/task rc:completed.rc completed 2>&1};
like ($output, qr/one/, 'one -> completed');
unlike ($output, qr/two/, 'two -> deleted');