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

@@ -41,15 +41,15 @@ if (open my $fh, '>', 'bug.rc')
# Bug 674: ID numbers change between reports when marking tasks as done
# Setup: Add a few tasks
qx{../src/task rc:bug.rc add One};
qx{../src/task rc:bug.rc add Two};
qx{../src/task rc:bug.rc add Three};
qx{../src/task rc:bug.rc add One 2>&1};
qx{../src/task rc:bug.rc add Two 2>&1};
qx{../src/task rc:bug.rc add Three 2>&1};
# Complete task 1 and then attempt to complete task 2
qx{../src/task rc:bug.rc 1 done};
qx{../src/task rc:bug.rc 1 done 2>&1};
# Result: Immediately delete the created task
my $output = qx{../src/task rc:bug.rc 2 done};
my $output = qx{../src/task rc:bug.rc 2 done 2>&1};
like ($output, qr/Two/ms, 'IDs correctly remain unchanged after done');
# Cleanup.