Unit Tests
- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
@@ -46,9 +46,9 @@ if (open my $fh, '>', 'uda.rc')
|
||||
}
|
||||
|
||||
# Add tasks with and without the UDA.
|
||||
qx{../src/task rc:uda.rc add with extra:\\"one two\\"};
|
||||
qx{../src/task rc:uda.rc add without};
|
||||
my $output = qx{../src/task rc:uda.rc uda};
|
||||
qx{../src/task rc:uda.rc add with extra:\\"one two\\" 2>&1};
|
||||
qx{../src/task rc:uda.rc add without 2>&1};
|
||||
my $output = qx{../src/task rc:uda.rc uda 2>&1};
|
||||
like ($output, qr/1\s+one two\s+with/, 'UDA string stored');
|
||||
like ($output, qr/2\s+without/, 'UDA string blank');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user