Unit Test - bug.495.t
- Modified the test to reflect the new handling of -- on the command line with respect to quoted text.
This commit is contained in:
@@ -43,7 +43,7 @@ if (open my $fh, '>', 'bug.rc')
|
|||||||
qx{../src/task rc:bug.rc add foo};
|
qx{../src/task rc:bug.rc add foo};
|
||||||
qx{../src/task rc:bug.rc 1 annotate "This -- is -- a -- test"};
|
qx{../src/task rc:bug.rc 1 annotate "This -- is -- a -- test"};
|
||||||
my $output = qx{../src/task rc:bug.rc list};
|
my $output = qx{../src/task rc:bug.rc list};
|
||||||
like ($output, qr/This -- is -- a -- test/, 'Double hyphens preserved.');
|
like ($output, qr/This is -- a -- test/, 'Double hyphens preserved, except the first ones.');
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
unlink 'pending.data';
|
unlink 'pending.data';
|
||||||
|
|||||||
Reference in New Issue
Block a user