Unit Tests - bug.628.t
- Quoting problem. To prevent the shell from stripping quotes, the command line must include \" ... \", but in a Perl string, that needs to be \\" ... \\". Silly mistake.
This commit is contained in:
@@ -43,7 +43,7 @@ if (open my $fh, '>', 'bug.rc')
|
||||
# Bug 628: task wait: with non-standard dateformat bug
|
||||
|
||||
# Setup: Add a task
|
||||
qx{../src/task rc:bug.rc add wait:"Wed Jan 01 2020" A buggy task};
|
||||
qx{../src/task rc:bug.rc add wait:\\"Wed Jan 01 2020\\" A buggy task};
|
||||
|
||||
# Result: Immediately delete the created task
|
||||
my $output = qx{../src/task rc:bug.rc waiting};
|
||||
|
||||
Reference in New Issue
Block a user